Class: Peatio::Bitcoincash::Client::ResponseError

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

Instance Method Summary collapse

Constructor Details

#initialize(code, msg) ⇒ ResponseError

Returns a new instance of ResponseError.



13
14
15
16
# File 'lib/peatio/bitcoincash/client.rb', line 13

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

Instance Method Details

#messageObject



18
19
20
# File 'lib/peatio/bitcoincash/client.rb', line 18

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