Class: DjiMqttConnect::Thing::Product::RequestsMarshal
- Inherits:
-
MessageMarshal
- Object
- MessageMarshal
- DjiMqttConnect::Thing::Product::RequestsMarshal
- Includes:
- Utils::MessageParsing
- Defined in:
- lib/dji_mqtt_connect/marshals/thing/product/requests_marshal.rb
Defined Under Namespace
Classes: RequestsTransformer
Instance Method Summary collapse
-
#load(raw_message) ⇒ Object
Attempts to look a the method attribute, and builds a specific Message class for the message.
Methods inherited from MessageMarshal
Instance Method Details
#load(raw_message) ⇒ Object
Attempts to look a the method attribute, and builds a specific Message class for the message
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/dji_mqtt_connect/marshals/thing/product/requests_marshal.rb', line 32 def load() # Parse the message from JSON = parse_json() # Transform the message = requests_transformer.call() = ["_method"] # Build an instance of the class, or a generic message from the current class = (, RequestsMessage) (, ) end |