Exception: CoinTools::Cryptowatch::InvalidResponseException
- Inherits:
-
StandardError
- Object
- StandardError
- CoinTools::Cryptowatch::InvalidResponseException
- Defined in:
- lib/cointools/cryptowatch.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.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
21 22 23 |
# File 'lib/cointools/cryptowatch.rb', line 21 def response @response end |