Exception: Enlighten::EnlightenApiError
- Inherits:
-
EnlightenError
- Object
- StandardError
- EnlightenError
- Enlighten::EnlightenApiError
- Defined in:
- lib/enlighten.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(json) ⇒ EnlightenApiError
constructor
A new instance of EnlightenApiError.
Constructor Details
#initialize(json) ⇒ EnlightenApiError
Returns a new instance of EnlightenApiError.
11 12 13 14 |
# File 'lib/enlighten.rb', line 11 def initialize(json) @code = json.reason.to_i if json.reason.to_i super((json. && json..join('; ')) || json.reason) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/enlighten.rb', line 10 def code @code end |