Exception: Rik::API::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Rik::API::Error
- Defined in:
- lib/rik/api.rb
Instance Attribute Summary collapse
-
#fault ⇒ Object
Returns the value of attribute fault.
-
#fault_code ⇒ Object
Returns the value of attribute fault_code.
Instance Method Summary collapse
-
#initialize(fault, fault_code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(fault, fault_code) ⇒ Error
Returns a new instance of Error.
12 13 14 15 |
# File 'lib/rik/api.rb', line 12 def initialize(fault, fault_code) @fault = fault @fault_code = fault_code end |
Instance Attribute Details
#fault ⇒ Object
Returns the value of attribute fault.
10 11 12 |
# File 'lib/rik/api.rb', line 10 def fault @fault end |
#fault_code ⇒ Object
Returns the value of attribute fault_code.
10 11 12 |
# File 'lib/rik/api.rb', line 10 def fault_code @fault_code end |