Exception: DigitSend::Exception

Inherits:
Exception
  • Object
show all
Defined in:
lib/digitsend/exception.rb

Direct Known Subclasses

MissingPhoneNumbers

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/digitsend/exception.rb', line 8

def data
  @data
end