Exception: StarkitBanking::ApiFault
- Inherits:
-
StandardError
- Object
- StandardError
- StarkitBanking::ApiFault
- Defined in:
- lib/starkit_banking/api/fault.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#subCode ⇒ Object
readonly
Returns the value of attribute subCode.
Instance Method Summary collapse
-
#initialize(fault) ⇒ ApiFault
constructor
A new instance of ApiFault.
Constructor Details
#initialize(fault) ⇒ ApiFault
Returns a new instance of ApiFault.
5 6 7 8 9 10 |
# File 'lib/starkit_banking/api/fault.rb', line 5 def initialize(fault) @code = fault.code @subCode = fault.subCode || '' @reason = fault.reasonText || '' = "#{fault.code} : #{fault.subCode} : #{fault.reasonText}" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/starkit_banking/api/fault.rb', line 3 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/starkit_banking/api/fault.rb', line 3 def end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
3 4 5 |
# File 'lib/starkit_banking/api/fault.rb', line 3 def reason @reason end |
#subCode ⇒ Object (readonly)
Returns the value of attribute subCode.
3 4 5 |
# File 'lib/starkit_banking/api/fault.rb', line 3 def subCode @subCode end |