Exception: IfreeSms::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- IfreeSms::APIError
- Defined in:
- lib/ifree_sms.rb
Instance Attribute Summary collapse
-
#sms_error_type ⇒ Object
Returns the value of attribute sms_error_type.
Instance Method Summary collapse
-
#initialize(details = {}) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(details = {}) ⇒ APIError
Returns a new instance of APIError.
51 52 53 54 |
# File 'lib/ifree_sms.rb', line 51 def initialize(details = {}) self.sms_error_type = details["type"] super("#{sms_error_type}: #{details["message"]}") end |
Instance Attribute Details
#sms_error_type ⇒ Object
Returns the value of attribute sms_error_type.
50 51 52 |
# File 'lib/ifree_sms.rb', line 50 def sms_error_type @sms_error_type end |