Sha256: 4066753f281c933fa2a4d37dd779d4c8d49b2acd6710ee5ecaf3f33c0fa70d06

Contents?: true

Size: 777 Bytes

Versions: 5

Compression:

Stored size: 777 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
seamapi-2.0.0 lib/seam/clients/events.rb
seamapi-1.17.0 lib/seam/clients/events.rb
seamapi-1.16.1 lib/seam/clients/events.rb
seamapi-1.16.0 lib/seam/clients/events.rb
seamapi-1.15.0 lib/seam/clients/events.rb