Class: Peatio::Ripple::Client::ResponseError

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

Instance Method Summary collapse

Constructor Details

#initialize(code, msg) ⇒ ResponseError

Returns a new instance of ResponseError.



12
13
14
15
# File 'lib/peatio/ripple/client.rb', line 12

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

Instance Method Details

#messageObject



17
18
19
# File 'lib/peatio/ripple/client.rb', line 17

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