Sha256: 0f18b03bc40169875532d1faad795048530e22e65dc8dd83353c701e77ed1b15

Contents?: true

Size: 233 Bytes

Versions: 5

Compression:

Stored size: 233 Bytes

Contents

module IEX
  module Errors
    class ClientError < StandardError
      attr_reader :response

      def initialize(response)
        @response = response
        super JSON.parse(response[:body])['error']
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/errors/client_error.rb
iex-ruby-client-0.4.3 lib/iex/errors/client_error.rb
iex-ruby-client-0.4.2 lib/iex/errors/client_error.rb
iex-ruby-client-0.4.1 lib/iex/errors/client_error.rb
iex-ruby-client-0.4.0 lib/iex/errors/client_error.rb