class Pinnacle::InboundMediaMessage
def initialize(media_urls:, from:, to:, message_type: OMIT, text: OMIT, metadata: OMIT, additional_properties: nil)
-
(Pinnacle::InboundMediaMessage)
-
Parameters:
-
additional_properties
(OpenStruct
) -- Additional properties unmapped to the current class definition -
metadata
(Pinnacle::InboundMessageMetadata
) -- -
to
(String
) -- -
from
(String
) -- -
media_urls
(Array
) -- -
text
(String
) -- -
message_type
(String
) --
def initialize(media_urls:, from:, to:, message_type: OMIT, text: OMIT, metadata: OMIT, additional_properties: nil) @message_type = message_type if message_type != OMIT @text = text if text != OMIT @media_urls = media_urls @from = from @to = to @metadata = metadata if metadata != OMIT @additional_properties = additional_properties @_field_set = { "messageType": message_type, "text": text, "mediaUrls": media_urls, "from": from, "to": to, "metadata": metadata }.reject do |_k, v| v == OMIT end end