Exception: CoinTools::CoinMarketCap::InvalidResponseException

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

Direct Known Subclasses

BadRequestException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ InvalidResponseException

Returns a new instance of InvalidResponseException.



33
34
35
36
# File 'lib/cointools/coinmarketcap.rb', line 33

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



31
32
33
# File 'lib/cointools/coinmarketcap.rb', line 31

def response
  @response
end