Exception: Keysms::NoValidReceiversError

Inherits:
SMSError
  • Object
show all
Defined in:
lib/keysms.rb

Instance Attribute Summary collapse

Attributes inherited from SMSError

#error

Instance Method Summary collapse

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_receiversObject

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_sObject



147
148
149
# File 'lib/keysms.rb', line 147

def to_s
  @failed_receivers.join(", ")
end