Sha256: 05174dcc5fc4f98549343c9b7fc208f9d311917830b114cc2c9e724bd1c79572
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
module DockHealthApi class CustomField < Resource extend DockHealthApi::Crud::Create extend DockHealthApi::Crud::Delete extend DockHealthApi::Crud::Get extend DockHealthApi::Crud::Update extend DockHealthApi::Crud::List def self.resource_url "#{client.config.resource_url}/api/#{url_version}/configuration/field" end 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 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/customfield.rb |