Exception: Ultron::MarvelException
- Inherits:
-
Exception
- Object
- Exception
- Ultron::MarvelException
- Defined in:
- lib/ultron/exceptions/marvel_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(params) ⇒ MarvelException
constructor
A new instance of MarvelException.
Constructor Details
#initialize(params) ⇒ MarvelException
Returns a new instance of MarvelException.
5 6 7 8 |
# File 'lib/ultron/exceptions/marvel_exception.rb', line 5 def initialize params @code = params['code'].to_i @status = params['status'] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/ultron/exceptions/marvel_exception.rb', line 3 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/ultron/exceptions/marvel_exception.rb', line 3 def status @status end |