Class: LabClient::Applications
- Defined in:
- lib/labclient/applications/list.rb,
lib/labclient/applications/create.rb,
lib/labclient/applications/delete.rb
Overview
Specifics
Constant Summary
Constants included from AccessLevel
LabClient::AccessLevel::HUMAN_ACCESS_LEVELS, LabClient::AccessLevel::MACHINE_ACCESS_LEVELS
Instance Attribute Summary
Attributes inherited from Common
Instance Method Summary collapse
-
#create(query = {}) ⇒ Object
Create.
-
#delete(application_id = nil) ⇒ Object
Delete.
-
#list(query = {}) ⇒ Object
List.
Methods inherited from Common
#api_methods, #api_methods_help, #format_id, #format_query_id, #format_query_ids, #format_time?, #group_name, #help, #initialize, #inspect, #klass, #protected_query_access_level, #query_access_level, #query_format_time
Methods included from Docs
#demo, #desc, #doc, docs, #example, #group_name, #help, json, #markdown, #navigation, #option, #result, #subtitle, #title
Methods included from AccessLevel
#human_access_level, #human_protected_access_level, #machine_access_level, #machine_protected_access_level
Constructor Details
This class inherits a constructor from LabClient::Common
Instance Method Details
#create(query = {}) ⇒ Object
Create
32 33 34 |
# File 'lib/labclient/applications/create.rb', line 32 def create(query = {}) client.request(:post, 'applications', Application, query) end |
#delete(application_id = nil) ⇒ Object
Delete
31 32 33 |
# File 'lib/labclient/applications/delete.rb', line 31 def delete(application_id = nil) client.request(:delete, "applications/#{application_id}") end |
#list(query = {}) ⇒ Object
List
14 15 16 |
# File 'lib/labclient/applications/list.rb', line 14 def list(query = {}) client.request(:get, 'applications', Application, query) end |