Class: IqSMS::Response::SendSms
- Inherits:
-
IqSMS::Response
- Object
- IqSMS::Response
- IqSMS::Response::SendSms
- Defined in:
- lib/iqsms/response/send_sms.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#statuses ⇒ Object
readonly
Returns the value of attribute statuses.
Attributes inherited from IqSMS::Response
#hash, #original_response, #status
Instance Method Summary collapse
-
#initialize(original_response) ⇒ SendSms
constructor
A new instance of SendSms.
Constructor Details
#initialize(original_response) ⇒ SendSms
Returns a new instance of SendSms.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/iqsms/response/send_sms.rb', line 6 def initialize(original_response) super @statuses = Array(@hash[:messages]).map do || MessageStatus.new( status: [:status], client_id: [:client_id], smsc_id: [:smsc_id] ) end end |
Instance Attribute Details
#statuses ⇒ Object (readonly)
Returns the value of attribute statuses.
4 5 6 |
# File 'lib/iqsms/response/send_sms.rb', line 4 def statuses @statuses end |