Class: Peatio::Dash::Client::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/peatio/dash/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(code, msg) ⇒ ResponseError

Returns a new instance of ResponseError.



14
15
16
17
# File 'lib/peatio/dash/client.rb', line 14

def initialize(code, msg)
  @code = code
  @msg = msg
end

Instance Method Details

#messageObject



19
20
21
# File 'lib/peatio/dash/client.rb', line 19

def message
  "#{@msg} (#{@code})"
end