Sha256: a2f1feec6aa297e6ef5e58aba9cf113cb4f786a6bc24da6534f2650088fdde6e

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class CoverOpenServicesMessage < ServicesMessage
      def self.build(bid: generate_bid, tid: generate_tid, timestamp: current_timestamp)
        new(
          bid: bid,
          tid: tid,
          timestamp: timestamp,
          _method: "cover_open"
        )
      end

      attribute :_method, Types::String.enum("cover_open")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.25.1 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb
dji_mqtt_connect-0.1.25 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb