Class: Kloudless::Event
Overview
Class Method Summary collapse
Methods inherited from Model
http, #http, #initialize, #method_missing
Constructor Details
This class inherits a constructor from Kloudless::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Kloudless::Model
Class Method Details
.cursor(account_id:) ⇒ Object
11 12 13 14 |
# File 'lib/kloudless/event.rb', line 11 def self.cursor(account_id:) path = "/accounts/#{account_id}/events/latest" new(http.get(path)) end |
.list(account_id:, **params) ⇒ Object
5 6 7 8 |
# File 'lib/kloudless/event.rb', line 5 def self.list(account_id:, **params) path = "/accounts/#{account_id}/events" Kloudless::Collection.new(self, http.get(path, params: params)) end |