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