Class: DockHealthApi::Task

Inherits:
Resource show all
Extended by:
Crud::Create, Crud::Delete, Crud::Get, Crud::List, Crud::Update
Defined in:
lib/dock_health_api/resources/task.rb

Direct Known Subclasses

Comment, Group

Defined Under Namespace

Classes: Comment, Group

Class Method Summary collapse

Methods included from Crud::Create

create

Methods included from Crud::Delete

delete

Methods included from Crud::Get

get

Methods included from Crud::Update

update

Methods included from Crud::List

list

Methods inherited from Resource

class_name, client, execute_request, headers, resource_url, url_version

Methods inherited from Object

#initialize, #to_ostruct

Constructor Details

This class inherits a constructor from DockHealthApi::Object

Class Method Details

.list(**params) ⇒ Object



9
10
11
12
# File 'lib/dock_health_api/resources/task.rb', line 9

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}
  execute_request(:get, "#{resource_url}", headers: headers, params: params)
end