Class: DjiMqttConnect::Thing::Product::CoverOpenEventsMessage

Inherits:
EventsMessage show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/events/cover_open.rb

Instance Method Summary collapse

Methods inherited from EventsMessage

#flight_ids, #humanized_summary, #need_reply?, #to_s

Methods inherited from Message

current_timestamp, generate_bid, generate_tid, #to_s

Instance Method Details

#humanized_summary_interpolationObject



37
38
39
40
41
42
43
44
# File 'lib/dji_mqtt_connect/messages/thing/product/events/cover_open.rb', line 37

def humanized_summary_interpolation
  super.merge(
    status: data.output.humanized_status,
    percent: data.output.progress.percent,
    current_step: data.output.progress.current_step || "-",
    total_steps: data.output.progress.total_steps || "-"
  )
end