Class: DockHealthApi::CustomField

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

Class Method Summary collapse

Methods included from DockHealthApi::Crud::Create

create

Methods included from DockHealthApi::Crud::Delete

delete

Methods included from DockHealthApi::Crud::Get

get

Methods included from DockHealthApi::Crud::Update

update

Methods included from DockHealthApi::Crud::List

list

Methods inherited from Resource

class_name, client, execute_request, headers, 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



13
14
15
16
# File 'lib/dock_health_api/resources/customfield.rb', line 13

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

.resource_urlObject



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

def self.resource_url
  "#{client.config.resource_url}/api/#{url_version}/configuration/field"
end