Class: Infobip::SmsApi::TextMessage

Inherits:
Base
  • Object
show all
Defined in:
lib/infobip/sms_api/model/text_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_hash, #to_json

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

#fromObject

Returns the value of attribute from.



6
7
8
# File 'lib/infobip/sms_api/model/text_message.rb', line 6

def from
  @from
end

#textObject

Returns the value of attribute text.



6
7
8
# File 'lib/infobip/sms_api/model/text_message.rb', line 6

def text
  @text
end

#toObject

Returns the value of attribute to.



6
7
8
# File 'lib/infobip/sms_api/model/text_message.rb', line 6

def to
  @to
end