Sha256: 4d4461ab05f92528c3a3e901d957e63835c8fb0c13fafa6e0bcbdf383f0abf4b
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
module DockHealthApi class Task < Resource extend DockHealthApi::Crud::Create extend DockHealthApi::Crud::Delete extend DockHealthApi::Crud::Get extend DockHealthApi::Crud::Update extend DockHealthApi::Crud::List def self.list(**params) headers = {"x-api-key": "#{ENV["DOCK_HEALTH_API"]}", "x-user-id": "#{ENV["DOCK_USER"]}", "x-organization-id": client.config.org_id} response = execute_request(:get, "#{resource_url}", headers: headers, params: params) return response.parsed new(response.parsed) end class Group < Task def self.resource_url "#{Task.resource_url}/group" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dock_health_api-0.4.1 | lib/dock_health_api/resources/task.rb |