Exception: CoinTools::CoinMarketCap::InvalidResponseException
- Inherits:
-
StandardError
- Object
- StandardError
- CoinTools::CoinMarketCap::InvalidResponseException
- Defined in:
- lib/cointools/coinmarketcap.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ InvalidResponseException
constructor
A new instance of InvalidResponseException.
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.}") @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
31 32 33 |
# File 'lib/cointools/coinmarketcap.rb', line 31 def response @response end |