Exception: ViaBTC::Error::ExchangeError
- Inherits:
-
StandardError
- Object
- StandardError
- ViaBTC::Error::ExchangeError
- Defined in:
- lib/viabtc/error.rb
Overview
ViaBTC Exchange Server Base Error Class
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ExchangeError
constructor
A new instance of ExchangeError.
Constructor Details
#initialize(response) ⇒ ExchangeError
Returns a new instance of ExchangeError.
13 14 15 16 17 |
# File 'lib/viabtc/error.rb', line 13 def initialize(response) @code = response["error"]["code"] @message = response["error"]["message"] @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
12 13 14 |
# File 'lib/viabtc/error.rb', line 12 def response @response end |