Class: Seam::Clients::Events
- Inherits:
-
BaseClient
- Object
- BaseClient
- Seam::Clients::Events
- Defined in:
- lib/seam/clients/events.rb
Instance Attribute Summary
Attributes inherited from BaseClient
Instance Method Summary collapse
- #get(device_id: nil, event_id: nil, event_type: nil) ⇒ Object
- #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) ⇒ Object
Methods inherited from BaseClient
#initialize, #request_seam, #request_seam_object
Constructor Details
This class inherits a constructor from Seam::Clients::BaseClient
Instance Method Details
#get(device_id: nil, event_id: nil, event_type: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/seam/clients/events.rb', line 6 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 |
#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) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/seam/clients/events.rb', line 16 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 |