Exception: ActiveSms::SmsInvalid
- Inherits:
-
ActiveSmsError
- Object
- StandardError
- ActiveSmsError
- ActiveSms::SmsInvalid
- Defined in:
- lib/activesms/validations.rb
Overview
The SMS message object is invalid. Use the sms method to retrieve the message which did not validate.
Instance Attribute Summary collapse
-
#sms ⇒ Object
readonly
Returns the value of attribute sms.
Instance Method Summary collapse
-
#initialize(sms) ⇒ SmsInvalid
constructor
A new instance of SmsInvalid.
Constructor Details
#initialize(sms) ⇒ SmsInvalid
Returns a new instance of SmsInvalid.
6 7 8 9 |
# File 'lib/activesms/validations.rb', line 6 def initialize(sms) @sms = sms super("Validation failed: #{@sms.errors..join(', ')}") end |
Instance Attribute Details
#sms ⇒ Object (readonly)
Returns the value of attribute sms.
5 6 7 |
# File 'lib/activesms/validations.rb', line 5 def sms @sms end |