Method: Unit::Resource::EventResource.list
- Defined in:
- lib/unit/api_resources/event_resource.rb
.list(params = nil) ⇒ UnitResponse, UnitError
List events by calling Unit’s API
25 26 27 28 |
# File 'lib/unit/api_resources/event_resource.rb', line 25 def list(params = nil) response = HttpHelper.get("#{api_url}/events", params: params&.to_hash, headers: headers) response_handler(response) end |