Sha256: 590e2583c5a69f857b313e1884e4fa23c253a34bbdbfadf15895dbd289fceb84
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true require "json" module DjiMqttConnect module Thing::Product class EventsReplyMarshal < MessageMarshal include Utils::MessageDumping # Converts a message for transmission via MQTT def dump(message) # Fix up the hash representation transformed_message = convert_message_to_hash(message) # Convert the transformed message into JSON JSON.generate(transformed_message) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dji_mqtt_connect-0.1.25.1 | lib/dji_mqtt_connect/marshals/thing/product/events_reply_marshal.rb |
dji_mqtt_connect-0.1.25 | lib/dji_mqtt_connect/marshals/thing/product/events_reply_marshal.rb |