Class: LabClient::ProjectVariable
- Includes:
- ClassHelpers
- Defined in:
- lib/labclient/projects/variables/project_variable.rb
Overview
Inspect Helper
Instance Attribute Summary
Attributes inherited from Klass
Attributes inherited from LabStruct
Instance Method Summary collapse
Methods included from ClassHelpers
Methods inherited from Klass
#api_methods, #collect_project_id, #collect_release_id, #collect_repository_id, date_time_attrs, #format_time?, #group_name, #help, #initialize, #klass, #success?, #to_json, #update_self, user_attrs, #valid_group_project_levels, #verbose
Methods included from Docs
#demo, #desc, #doc, docs, #example, #group_name, #help, json, #markdown, #navigation, #option, #result, #subtitle, #title
Methods included from CurlHelper
Methods inherited from LabStruct
#as_json, #client, #keys, #slice, #success?
Constructor Details
This class inherits a constructor from LabClient::Klass
Instance Method Details
#delete ⇒ Object
21 22 23 24 25 |
# File 'lib/labclient/projects/variables/project_variable.rb', line 21 def delete project_id = collect_project_id client.projects.variables.delete(project_id, key) end |
#inspect ⇒ Object
6 7 8 |
# File 'lib/labclient/projects/variables/project_variable.rb', line 6 def inspect "#<ProjectVariable key: #{key}>" end |
#project ⇒ Object
10 11 12 13 |
# File 'lib/labclient/projects/variables/project_variable.rb', line 10 def project project_id = collect_project_id client.projects.show project_id end |
#show ⇒ Object
27 28 29 30 31 |
# File 'lib/labclient/projects/variables/project_variable.rb', line 27 def show project_id = collect_project_id client.projects.variables.show(project_id, key) end |
#update(query) ⇒ Object
15 16 17 18 19 |
# File 'lib/labclient/projects/variables/project_variable.rb', line 15 def update(query) project_id = collect_project_id update_self client.projects.variables.update(project_id, key, query) end |