Sha256: a47d6d5fc7f7f7b7ebbd63b2b170c1760e99d101fe27a2c362d56a45247486d5

Contents?: true

Size: 485 Bytes

Versions: 43

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class RequestsMessage < DjiMqttConnect::Message
      attribute :tid, Types::UUID
      attribute :bid, Types::UUID
      attribute :timestamp, Types::Timestamp

      attribute :_data, Types::Hash
      attribute :_method, Types::String

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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.15 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.14.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.14 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.13.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.13 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.12.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.12 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.11 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.10 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.9 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.8 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.7 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.6 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.5 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.4.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.4 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.3 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.2 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.1.4 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.1.3 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb