Sha256: 6666127722957797b0a73a87fd648785c1c4d611f9690d5f097c76a3ad39eb07

Contents?: true

Size: 621 Bytes

Versions: 12

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class DevicesSimulate
      def initialize(client:, defaults:)
        @client = client
        @defaults = defaults
      end

      def connect(device_id:)
        @client.post("/devices/simulate/connect", {device_id: device_id}.compact)

        nil
      end

      def disconnect(device_id:)
        @client.post("/devices/simulate/disconnect", {device_id: device_id}.compact)

        nil
      end

      def remove(device_id:)
        @client.post("/devices/simulate/remove", {device_id: device_id}.compact)

        nil
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
seam-2.3.0 lib/seam/routes/clients/devices_simulate.rb
seam-2.2.0 lib/seam/routes/clients/devices_simulate.rb
seam-2.1.0 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.1 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.0 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.0rc0 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.0b5 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.0b4 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.0b3 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.0b2 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.0b1 lib/seam/routes/clients/devices_simulate.rb
seam-2.0.0b0 lib/seam/routes/clients/devices_simulate.rb