Class: AfTalk::SmsMessageInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/aftalk/sms_message_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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]
  @message_id = data[:id]
  @to = data[:to]
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



3
4
5
# File 'lib/aftalk/sms_message_info.rb', line 3

def date
  @date
end

#fromObject (readonly)

Returns the value of attribute from.



3
4
5
# File 'lib/aftalk/sms_message_info.rb', line 3

def from
  @from
end

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_idObject (readonly)

Returns the value of attribute message_id.



3
4
5
# File 'lib/aftalk/sms_message_info.rb', line 3

def message_id
  @message_id
end

#toObject (readonly)

Returns the value of attribute to.



3
4
5
# File 'lib/aftalk/sms_message_info.rb', line 3

def to
  @to
end