Class: DjiMqttConnect::Thing::Product::AirportOrganizationGetRequestsReplyMessage

Inherits:
RequestsReplyMessage show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_get.rb

Overview

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestsReplyMessage

#humanized_summary

Methods inherited from Message

current_timestamp, generate_bid, generate_tid, #to_s

Class Method Details

.build_for(airport_organization_get_message, output:, result: 0) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_get.rb', line 7

def self.build_for(airport_organization_get_message, output:, result: 0)
  new(
    _method: airport_organization_get_message._method,
    tid: airport_organization_get_message.tid,
    bid: airport_organization_get_message.bid,
    timestamp: current_timestamp,
    data: {
      result: result,
      output: output
    }
  )
end

Instance Method Details

#humanized_summary_interpolationObject



32
33
34
35
36
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_get.rb', line 32

def humanized_summary_interpolation
  super.merge(
    organization_name: data.output.organization_name
  )
end