Class: Infobip::SmsApi::TextMessage
- Defined in:
- lib/infobip/sms_api/model/text_message.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#text ⇒ Object
Returns the value of attribute text.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ TextMessage
constructor
A new instance of TextMessage.
Methods inherited from Base
Constructor Details
#initialize(attributes) ⇒ TextMessage
Returns a new instance of TextMessage.
8 9 10 11 12 |
# File 'lib/infobip/sms_api/model/text_message.rb', line 8 def initialize(attributes) @from = attributes[:from] @to = attributes[:to] @text = attributes[:text] end |
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
6 7 8 |
# File 'lib/infobip/sms_api/model/text_message.rb', line 6 def from @from end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/infobip/sms_api/model/text_message.rb', line 6 def text @text end |
#to ⇒ Object
Returns the value of attribute to.
6 7 8 |
# File 'lib/infobip/sms_api/model/text_message.rb', line 6 def to @to end |