Class: OmiseGO::Error

Inherits:
Base
  • Object
show all
Defined in:
lib/omisego/error.rb

Instance Attribute Summary

Attributes inherited from Base

#client, #original_payload

Instance Method Summary collapse

Methods inherited from Base

attributes, global_client, #initialize, #inspect, request

Constructor Details

This class inherits a constructor from OmiseGO::Base

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/omisego/error.rb', line 13

def error?
  true
end

#success?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/omisego/error.rb', line 9

def success?
  false
end

#to_sObject



5
6
7
# File 'lib/omisego/error.rb', line 5

def to_s
  "#{code} - #{description}"
end