Class: DjiMqttConnect::Thing::Product::RequestsMessage
- Inherits:
-
Message
- Object
- Dry::Struct
- Message
- DjiMqttConnect::Thing::Product::RequestsMessage
- Defined in:
- lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
Direct Known Subclasses
AirportBindStatusRequestsMessage, AirportOrganizationBindRequestsMessage, AirportOrganizationGetRequestsMessage, ConfigRequestsMessage, FlightAreasGetRequestsMessage, FlighttaskResourceGetRequestsMessage, OfflineMapGetRequestsMessage, StorageConfigGetRequestsMessage
Instance Method Summary collapse
-
#flight_ids ⇒ Object
All the flight IDs in the message.
- #humanized_summary ⇒ Object
- #humanized_summary_interpolation ⇒ Object
- #to_s ⇒ Object
Methods inherited from Message
current_timestamp, generate_bid, generate_tid
Instance Method Details
#flight_ids ⇒ Object
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_summary ⇒ Object
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_interpolation ⇒ Object
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_s ⇒ Object
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 |