Class: PatchRetention::Events
- Inherits:
-
Object
- Object
- PatchRetention::Events
- Defined in:
- lib/patch_retention/events.rb
Defined Under Namespace
Constant Summary collapse
- API_PATH =
"events"
Class Method Summary collapse
- .all(limit: 30, offset: 0, config: nil) ⇒ Object
- .create(event_type:, primary_key_details:, data:, at: nil, contact_details: {}, config: nil) ⇒ Object
- .find(id, config: nil) ⇒ Object
Class Method Details
.all(limit: 30, offset: 0, config: nil) ⇒ Object
11 12 13 |
# File 'lib/patch_retention/events.rb', line 11 def all(limit: 30, offset: 0, config: nil) Find.all(limit, offset, config) end |
.create(event_type:, primary_key_details:, data:, at: nil, contact_details: {}, config: nil) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/patch_retention/events.rb', line 15 def create(event_type:, primary_key_details:, data:, at: nil, contact_details: {}, config: nil) Create.call( event_type: event_type, primary_key_details: primary_key_details, data: data, at: at, contact_details: contact_details, config: config, ) end |