Class: DockHealthApi::CustomField
- 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
Methods included from DockHealthApi::Crud::Delete
Methods included from DockHealthApi::Crud::Get
Methods included from DockHealthApi::Crud::Update
Methods included from DockHealthApi::Crud::List
Methods inherited from Resource
class_name, client, execute_request, headers, url_version
Methods inherited from Object
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_url ⇒ Object
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 |