Sha256: 54bf6f4b3b6b69d423c4121508b7e14c632bb5a02d91c0f95076d3385a462026

Contents?: true

Size: 781 Bytes

Versions: 16

Compression:

Stored size: 781 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(
          :get,
          "/events/get",
          Seam::Event,
          "event",
          params: {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(
          :get,
          "/events/list",
          Seam::Event,
          "events",
          params: {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

16 entries across 16 versions & 1 rubygems

Version Path
seamapi-1.14.0 lib/seam/clients/events.rb
seamapi-1.13.0 lib/seam/clients/events.rb
seamapi-1.12.1 lib/seam/clients/events.rb
seamapi-1.12.0 lib/seam/clients/events.rb
seamapi-1.11.2 lib/seam/clients/events.rb
seamapi-1.11.1 lib/seam/clients/events.rb
seamapi-1.11.0 lib/seam/clients/events.rb
seamapi-1.10.0 lib/seam/clients/events.rb
seamapi-1.9.0 lib/seam/clients/events.rb
seamapi-1.8.0 lib/seam/clients/events.rb
seamapi-1.7.0 lib/seam/clients/events.rb
seamapi-1.6.0 lib/seam/clients/events.rb
seamapi-1.5.0 lib/seam/clients/events.rb
seamapi-1.4.0 lib/seam/clients/events.rb
seamapi-1.3.2 lib/seam/clients/events.rb
seamapi-1.3.1 lib/seam/clients/events.rb