Exception: Payoneer::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/payoneer/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description: '', details: {}, code: 0) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
10
# File 'lib/payoneer/error.rb', line 5

def initialize(description: '', details: {}, code: 0)
  super(description)
  @description = description
  @details = details
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/payoneer/error.rb', line 3

def code
  @code
end

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/payoneer/error.rb', line 3

def description
  @description
end

#detailsObject (readonly)

Returns the value of attribute details.



3
4
5
# File 'lib/payoneer/error.rb', line 3

def details
  @details
end