Class: DjiMqttConnect::Thing::Product::AirportBindStatusRequestsReplyMessage
Class Method Summary
collapse
Instance Method Summary
collapse
#humanized_summary
Methods inherited from Message
current_timestamp, generate_bid, generate_tid, #to_s
Class Method Details
.build_for(airport_bind_status_message, bind_status:, result: 0) ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb', line 6
def self.build_for(airport_bind_status_message, bind_status:, result: 0)
new(
_method: airport_bind_status_message._method,
tid: airport_bind_status_message.tid,
bid: airport_bind_status_message.bid,
timestamp: current_timestamp,
data: {
result: result,
output: {
bind_status: bind_status
}
}
)
end
|
Instance Method Details
#humanized_summary_interpolation ⇒ Object
47
48
49
50
51
|
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb', line 47
def humanized_summary_interpolation
super.merge(
bind_status: data.output.bind_status.map(&:humanized_summary).join(", ")
)
end
|