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



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

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

#humanized_summary_interpolationObject



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

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

#to_sObject



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

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