# frozen_string_literal: true module DjiMqttConnect module Thing::Product class EventsMessage < Message attribute :bid, Types::UUID attribute :tid, 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?(EventsMessage) ? "#{super}[#{_method}]" : super end end end end