Class: DjiMqttConnect::Thing::Product::ServicesReplyMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb

Instance Method Summary collapse

Methods inherited from Message

current_timestamp, generate_bid, generate_tid

Instance Method Details

#humanized_summaryObject



18
19
20
# File 'lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb', line 18

def humanized_summary
  Translations.thing_product_services_reply_summary(_method, **humanized_summary_interpolation)
end

#humanized_summary_interpolationObject



22
23
24
# File 'lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb', line 22

def humanized_summary_interpolation
  data.to_h.merge(method: _method)
end

#to_sObject



26
27
28
29
# File 'lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb', line 26

def to_s
  # Include data method for Generic messages
  instance_of?(ServicesReplyMessage) ? "#{super}[#{_method}]" : super
end