Class: DjiMqttConnect::Thing::Product::TakeoffToPointProgressEventsMessage
- Inherits:
-
EventsMessage
- Object
- Dry::Struct
- Message
- EventsMessage
- DjiMqttConnect::Thing::Product::TakeoffToPointProgressEventsMessage
- Defined in:
- lib/dji_mqtt_connect/messages/thing/product/events/takeoff_to_point_progress.rb
Instance Method Summary collapse
-
#flight_ids ⇒ Object
All the flight IDs in the message.
- #humanized_summary_interpolation ⇒ Object
Methods inherited from EventsMessage
#humanized_summary, #need_reply?, #to_s
Methods inherited from Message
current_timestamp, generate_bid, generate_tid, #to_s
Instance Method Details
#flight_ids ⇒ Object
All the flight IDs in the message
44 45 46 |
# File 'lib/dji_mqtt_connect/messages/thing/product/events/takeoff_to_point_progress.rb', line 44 def flight_ids [data.flight_id] end |
#humanized_summary_interpolation ⇒ Object
36 37 38 39 40 41 |
# File 'lib/dji_mqtt_connect/messages/thing/product/events/takeoff_to_point_progress.rb', line 36 def humanized_summary_interpolation super.merge( remaining_distance: data.remaining_distance.round(2).to_s("F"), remaining_time: data.remaining_time.round(2).to_s("F") ) end |