Class: AfTalk::SmsMessageStatus
- Inherits:
-
Object
- Object
- AfTalk::SmsMessageStatus
- Defined in:
- lib/aftalk/sms_message_status.rb
Instance Attribute Summary collapse
-
#cost ⇒ Object
readonly
Returns the value of attribute cost.
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ SmsMessageStatus
constructor
A new instance of SmsMessageStatus.
Constructor Details
#initialize(data = {}) ⇒ SmsMessageStatus
Returns a new instance of SmsMessageStatus.
5 6 7 8 9 10 |
# File 'lib/aftalk/sms_message_status.rb', line 5 def initialize(data = {}) @cost = data[:cost] @message_id = data[:messageId] @number = data[:number] @status = data[:status] end |
Instance Attribute Details
#cost ⇒ Object (readonly)
Returns the value of attribute cost.
3 4 5 |
# File 'lib/aftalk/sms_message_status.rb', line 3 def cost @cost end |
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
3 4 5 |
# File 'lib/aftalk/sms_message_status.rb', line 3 def @message_id end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
3 4 5 |
# File 'lib/aftalk/sms_message_status.rb', line 3 def number @number end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/aftalk/sms_message_status.rb', line 3 def status @status end |