Sha256: bfe47f0a951147e1957704750848a824ac71344d37de4e942ef9a5917677868d

Contents?: true

Size: 526 Bytes

Versions: 3

Compression:

Stored size: 526 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? :gateway, Types::String

      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

3 entries across 3 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.24.1 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.24 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb
dji_mqtt_connect-0.1.23.3 lib/dji_mqtt_connect/messages/thing/product/requests_message.rb