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