Sha256: ac2f3e7e0c022860a1e9b7b5557e29e8fb2354c7581e9d814e233c203e125fbe

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

module FreshdeskAPI
  module Error
    class ClientError < StandardError; end

    class RecordInvalid < ClientError
      attr_accessor :response, :errors

      def initialize(response)
        @response = response
        binding.pry
      end

      def to_s
        "#{self.class.name}: #{@errors.to_s}"
      end
    end

    class NotAcceptable < ClientError; end
    class ResourceNotFound < ClientError; end
    class NetworkError < ClientError; end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
freshdesk_api-0.1.2 lib/freshdesk_api/error.rb
freshdesk_api-0.1.1 lib/freshdesk_api/error.rb
freshdesk_api-0.1.0 lib/freshdesk_api/error.rb