Exception: Sms::DeliveryError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



74
75
76
# File 'lib/sms.rb', line 74

def code
  @code
end