Class: DjiMqttConnect::Thing::Product::BatteryStoreModeSwitchServicesMessage
- Inherits:
-
ServicesMessage
- Object
- Dry::Struct
- Message
- ServicesMessage
- DjiMqttConnect::Thing::Product::BatteryStoreModeSwitchServicesMessage
- Defined in:
- lib/dji_mqtt_connect/messages/thing/product/services/battery_store_mode_switch.rb
Overview
Constant Summary collapse
- ACTION_SCHEDULE_MODE =
1- ACTION_STANDBY_MODE =
2
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ServicesMessage
#flight_ids, #humanized_summary
Methods inherited from Message
current_timestamp, generate_bid, generate_tid, #to_s
Class Method Details
.build(action:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/dji_mqtt_connect/messages/thing/product/services/battery_store_mode_switch.rb', line 11 def self.build(action:, bid: generate_bid, tid: generate_tid, timestamp: ) new( bid: bid, tid: tid, timestamp: , _method: "battery_store_mode_switch", data: { action: action } ) end |
Instance Method Details
#humanized_summary_interpolation ⇒ Object
34 35 36 37 38 |
# File 'lib/dji_mqtt_connect/messages/thing/product/services/battery_store_mode_switch.rb', line 34 def humanized_summary_interpolation super.merge( action: data.humanized_action ) end |