Class: Infobip::SmsApi::BinaryMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_hash, #to_json

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

#binaryObject

Returns the value of attribute binary.



5
6
7
# File 'lib/infobip/sms_api/model/binary_message.rb', line 5

def binary
  @binary
end

#fromObject

Returns the value of attribute from.



5
6
7
# File 'lib/infobip/sms_api/model/binary_message.rb', line 5

def from
  @from
end

#toObject

Returns the value of attribute to.



5
6
7
# File 'lib/infobip/sms_api/model/binary_message.rb', line 5

def to
  @to
end