Sha256: 310521a93d9db29be287955cd07e81e6a57771e33deacd8d4286ace6766864cd

Contents?: true

Size: 998 Bytes

Versions: 2

Compression:

Stored size: 998 Bytes

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class Events < BaseClient
      def get(device_id: nil, event_id: nil, event_type: nil)
        request_seam_object(
          :post,
          "/events/get",
          Seam::Event,
          "event",
          body: {device_id: device_id, event_id: event_id, event_type: event_type}.compact
        )
      end

      def list(access_code_id: nil, access_code_ids: nil, between: nil, connected_account_id: nil, device_id: nil, device_ids: nil, event_type: nil, event_types: nil, limit: nil, since: nil)
        request_seam_object(
          :post,
          "/events/list",
          Seam::Event,
          "events",
          body: {access_code_id: access_code_id, access_code_ids: access_code_ids, between: between, connected_account_id: connected_account_id, device_id: device_id, device_ids: device_ids, event_type: event_type, event_types: event_types, limit: limit, since: since}.compact
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seam-2.0.0a2 lib/seam/clients/events.rb
seam-2.0.0.prerelease.1 lib/seam/clients/events.rb