Class: Peatio::Electrum::Client::ResponseError
- Defined in:
- lib/peatio/electrum/client.rb
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ ResponseError
constructor
A new instance of ResponseError.
- #message ⇒ Object
Constructor Details
#initialize(code, msg) ⇒ ResponseError
Returns a new instance of ResponseError.
11 12 13 14 |
# File 'lib/peatio/electrum/client.rb', line 11 def initialize(code, msg) @code = code @msg = msg end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/peatio/electrum/client.rb', line 16 def "#{@msg} (#{@code})" end |