Exception: DigitSend::Exception
- Inherits:
-
Exception
- Object
- Exception
- DigitSend::Exception
- Defined in:
- lib/digitsend/exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(hash) ⇒ Exception
Returns a new instance of Exception.
3 4 5 6 |
# File 'lib/digitsend/exception.rb', line 3 def initialize(hash) super(hash["message"]) @data = hash["data"] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/digitsend/exception.rb', line 8 def data @data end |