Class: OFX::Status
- Inherits:
-
Foundation
- Object
- Foundation
- OFX::Status
- Defined in:
- lib/ofx/status.rb
Overview
Error Reporting Aggregate
Instance Attribute Summary collapse
-
#code ⇒ Object
Error code.
-
#message ⇒ Object
Textual explanation.
-
#severity ⇒ Object
Severity of the error.
Instance Method Summary collapse
Methods inherited from Foundation
Constructor Details
This class inherits a constructor from OFX::Foundation
Instance Attribute Details
#code ⇒ Object
Error code
4 5 6 |
# File 'lib/ofx/status.rb', line 4 def code @code end |
#message ⇒ Object
Textual explanation
6 7 8 |
# File 'lib/ofx/status.rb', line 6 def @message end |
#severity ⇒ Object
Severity of the error
5 6 7 |
# File 'lib/ofx/status.rb', line 5 def severity @severity end |
Instance Method Details
#success? ⇒ Boolean
8 9 10 |
# File 'lib/ofx/status.rb', line 8 def success? code == 0 end |