Class: DjiMqttConnect::Thing::Product::RequestsMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/requests_message.rb

Instance Method Summary collapse

Methods inherited from Message

current_timestamp, generate_bid, generate_tid

Instance Method Details

#flight_idsObject

All the flight IDs in the message



27
28
29
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_message.rb', line 27

def flight_ids
  []
end

#humanized_summaryObject



18
19
20
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_message.rb', line 18

def humanized_summary
  Translations.thing_product_requests_summary(_method, **humanized_summary_interpolation)
end

#humanized_summary_interpolationObject



22
23
24
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_message.rb', line 22

def humanized_summary_interpolation
  data.to_h.merge(method: _method)
end

#to_sObject



31
32
33
34
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_message.rb', line 31

def to_s
  # Include data method for Generic messages
  instance_of?(RequestsMessage) ? "#{super}[#{_method}]" : super
end