Sha256: 0ab53c232e3d01c8f67f3badf45d3126fe93af52f4eeafbc225b68b8b4cf3189
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product class RequestsReplyMessage < DjiMqttConnect::Message # Ensure all values are accepted schema schema.strict attribute :tid, Types::UUID attribute :bid, Types::UUID attribute :timestamp, Types::Timestamp attribute :_method, Types::String attribute :data, Types::Hash.default({}.freeze) def humanized_summary Translations.thing_product_requests_reply_summary(_method, **humanized_summary_interpolation) end def humanized_summary_interpolation data.to_h.merge(method: _method) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems