Class: DjiMqttConnect::Sys::Product::StatusMessage
- Inherits:
-
Message
- Object
- Dry::Struct
- Message
- DjiMqttConnect::Sys::Product::StatusMessage
show all
- Defined in:
- lib/dji_mqtt_connect/messages/sys/product/status_message.rb
Overview
“tid”:“3093aad5-bb98-5026-685a-cea540eb9267”,“bid”:“479533e0-cb01-933c-3758-22f2a82abeb8”,“timestamp”:1679380232398,“method”:“update_topo”,“data”:{“domain”:2,“type”:144,“sub_type”:0,“device_secret”:“0d180c84ddbe76ee32ad2e48eab3c994”,“nonce”:“83ad8038363b4d5387cbf106d1517718”,“version”:1,“sub_devices”:[]}
Instance Method Summary
collapse
Methods inherited from Message
current_timestamp, generate_bid, generate_tid
Instance Method Details
#humanized_summary ⇒ Object
16
17
18
|
# File 'lib/dji_mqtt_connect/messages/sys/product/status_message.rb', line 16
def humanized_summary
Translations.sys_product_status_summary(_method, **humanized_summary_interpolation)
end
|
#humanized_summary_interpolation ⇒ Object
20
21
22
|
# File 'lib/dji_mqtt_connect/messages/sys/product/status_message.rb', line 20
def humanized_summary_interpolation
data.to_h.merge(method: _method)
end
|
#to_s ⇒ Object
24
25
26
27
|
# File 'lib/dji_mqtt_connect/messages/sys/product/status_message.rb', line 24
def to_s
instance_of?(StatusMessage) ? "#{super}[#{_method}]" : super
end
|