Class: Payrex::PayrexError
- Inherits:
-
Object
- Object
- Payrex::PayrexError
- Defined in:
- lib/payrex_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
Instance Method Summary collapse
-
#initialize(error) ⇒ PayrexError
constructor
A new instance of PayrexError.
Constructor Details
#initialize(error) ⇒ PayrexError
Returns a new instance of PayrexError.
7 8 9 10 11 |
# File 'lib/payrex_error.rb', line 7 def initialize(error) @code = error["code"] @detail = error["detail"] @parameter = error["parameter"] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/payrex_error.rb', line 3 def code @code end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
3 4 5 |
# File 'lib/payrex_error.rb', line 3 def detail @detail end |
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
3 4 5 |
# File 'lib/payrex_error.rb', line 3 def parameter @parameter end |