Sha256: 1b3c43d8b2ccee657bcae0a985f320448eac804dc4bea76d892f7711b62990b5

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class Devices < BaseClient
      def list(params = {})
        request_seam_object(
          :get,
          "/devices/list",
          Seam::Device,
          "devices",
          params: params
        )
      end

      def get(device_id)
        request_seam_object(
          :get,
          "/devices/get",
          Seam::Device,
          "device",
          params: { device_id: device_id }
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
seamapi-0.1.0 lib/seam/clients/devices.rb
seamapi-0.0.5 lib/seam/clients/devices.rb
seamapi-0.0.4 lib/seam/clients/devices.rb
seamapi-0.0.3 lib/seam/clients/devices.rb
seamapi-0.0.2 lib/seam/clients/devices.rb
seamapi-0.0.1 lib/seam/clients/devices.rb