Class: AfricasTalking::SmsMessage
- Inherits:
-
Object
- Object
- AfricasTalking::SmsMessage
- Defined in:
- lib/africas_talking/sms_message.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#linkId ⇒ Object
Returns the value of attribute linkId.
-
#text ⇒ Object
Returns the value of attribute text.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(id, text, from, to, linkId, date) ⇒ SmsMessage
constructor
A new instance of SmsMessage.
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
#date ⇒ Object
Returns the value of attribute date.
3 4 5 |
# File 'lib/africas_talking/sms_message.rb', line 3 def date @date end |
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/africas_talking/sms_message.rb', line 3 def from @from end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/africas_talking/sms_message.rb', line 3 def id @id end |
#linkId ⇒ Object
Returns the value of attribute linkId.
3 4 5 |
# File 'lib/africas_talking/sms_message.rb', line 3 def linkId @linkId end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/africas_talking/sms_message.rb', line 3 def text @text end |
#to ⇒ Object
Returns the value of attribute to.
3 4 5 |
# File 'lib/africas_talking/sms_message.rb', line 3 def to @to end |