Class: AfTalk::SmsMessageInfo
- Inherits:
-
Object
- Object
- AfTalk::SmsMessageInfo
- Defined in:
- lib/aftalk/sms_message_info.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#link_id ⇒ Object
readonly
Returns the value of attribute link_id.
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ SmsMessageInfo
constructor
A new instance of SmsMessageInfo.
Constructor Details
#initialize(data = {}) ⇒ SmsMessageInfo
Returns a new instance of SmsMessageInfo.
5 6 7 8 9 10 11 |
# File 'lib/aftalk/sms_message_info.rb', line 5 def initialize(data = {}) @date = data[:date] @from = data[:from] @link_id = data[:linkId] = data[:id] @to = data[:to] end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
3 4 5 |
# File 'lib/aftalk/sms_message_info.rb', line 3 def date @date end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
3 4 5 |
# File 'lib/aftalk/sms_message_info.rb', line 3 def from @from end |
#link_id ⇒ Object (readonly)
Returns the value of attribute link_id.
3 4 5 |
# File 'lib/aftalk/sms_message_info.rb', line 3 def link_id @link_id end |
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
3 4 5 |
# File 'lib/aftalk/sms_message_info.rb', line 3 def end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
3 4 5 |
# File 'lib/aftalk/sms_message_info.rb', line 3 def to @to end |