Exception: Sms::DeliveryError
- Inherits:
-
StandardError
- Object
- StandardError
- Sms::DeliveryError
- Defined in:
- lib/sms.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code = nil) ⇒ DeliveryError
constructor
A new instance of DeliveryError.
Constructor Details
#initialize(msg, code = nil) ⇒ DeliveryError
Returns a new instance of DeliveryError.
75 76 77 78 |
# File 'lib/sms.rb', line 75 def initialize(msg, code = nil) @code = code.to_i if code super(msg) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
74 75 76 |
# File 'lib/sms.rb', line 74 def code @code end |