# 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