Class: AfricasTalking::SmsMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/africas_talking/sms_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, text, from, to, linkId, date) ⇒ SmsMessage

Returns a new instance of SmsMessage.



5
6
7
8
9
10
11
12
# File 'lib/africas_talking/sms_message.rb', line 5

def initialize(id, text, from, to, linkId, date)
  @id = id
  @text = text
  @from = from
  @to = to
  @linkId = linkId
  @date = date
end

Instance Attribute Details

#dateObject

Returns the value of attribute date.



3
4
5
# File 'lib/africas_talking/sms_message.rb', line 3

def date
  @date
end

#fromObject

Returns the value of attribute from.



3
4
5
# File 'lib/africas_talking/sms_message.rb', line 3

def from
  @from
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/africas_talking/sms_message.rb', line 3

def id
  @id
end

#linkIdObject

Returns the value of attribute linkId.



3
4
5
# File 'lib/africas_talking/sms_message.rb', line 3

def linkId
  @linkId
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/africas_talking/sms_message.rb', line 3

def text
  @text
end

#toObject

Returns the value of attribute to.



3
4
5
# File 'lib/africas_talking/sms_message.rb', line 3

def to
  @to
end