Exception: Keysms::NoValidReceiversError
- Defined in:
- lib/keysms.rb
Instance Attribute Summary collapse
-
#failed_receivers ⇒ Object
Returns the value of attribute failed_receivers.
Attributes inherited from SMSError
Instance Method Summary collapse
-
#initialize(error) ⇒ NoValidReceiversError
constructor
A new instance of NoValidReceiversError.
- #to_s ⇒ Object
Constructor Details
#initialize(error) ⇒ NoValidReceiversError
Returns a new instance of NoValidReceiversError.
142 143 144 145 |
# File 'lib/keysms.rb', line 142 def initialize(error) @failed_receivers = error["error"]["receivers"]["data"]["failed"] super(error) end |
Instance Attribute Details
#failed_receivers ⇒ Object
Returns the value of attribute failed_receivers.
140 141 142 |
# File 'lib/keysms.rb', line 140 def failed_receivers @failed_receivers end |
Instance Method Details
#to_s ⇒ Object
147 148 149 |
# File 'lib/keysms.rb', line 147 def to_s @failed_receivers.join(", ") end |