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.23.2 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.23.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.23 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.22.2 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.22.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.22 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.21 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.20.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.20 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.19.2 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.19.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.19 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.18 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.17.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.17 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.16.2 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.16.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.16 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.15.2 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.15.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb