Exception: NitroApi::NitroError
- Inherits:
-
StandardError
- Object
- StandardError
- NitroApi::NitroError
- Defined in:
- lib/nitro_api.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(err_code = nil) ⇒ NitroError
constructor
A new instance of NitroError.
Constructor Details
#initialize(err_code = nil) ⇒ NitroError
Returns a new instance of NitroError.
15 16 17 |
# File 'lib/nitro_api.rb', line 15 def initialize (err_code=nil) @code = err_code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
13 14 15 |
# File 'lib/nitro_api.rb', line 13 def code @code end |