Exception: CoinTools::Cryptowatch::InvalidResponseException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cointools/cryptowatch.rb

Direct Known Subclasses

BadRequestException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ InvalidResponseException

Returns a new instance of InvalidResponseException.



23
24
25
26
# File 'lib/cointools/cryptowatch.rb', line 23

def initialize(response)
  super("#{response.code} #{response.message}")
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



21
22
23
# File 'lib/cointools/cryptowatch.rb', line 21

def response
  @response
end