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