Class: LabClient::DeployKey
- Includes:
 - ClassHelpers
 
- Defined in:
 - lib/labclient/deploy_keys/deploy_key.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, #quiet?, #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 included from Logger
Methods inherited from LabStruct
#[], #[]=, #as_json, #client, #initialize, #key?, #keys, #method_missing, #respond_to_missing?, #slice, #success?, #to_h
Constructor Details
This class inherits a constructor from LabClient::Klass
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class LabClient::LabStruct
Instance Method Details
#delete ⇒ Object
      19 20 21 22  | 
    
      # File 'lib/labclient/deploy_keys/deploy_key.rb', line 19 def delete project_id = collect_project_id client.deploy_keys.delete(project_id, id) end  | 
  
#inspect ⇒ Object
      7 8 9  | 
    
      # File 'lib/labclient/deploy_keys/deploy_key.rb', line 7 def inspect "#<Deploy Key id: #{id}, title: #{title}>" end  | 
  
#update(query = {}) ⇒ Object
      13 14 15 16 17  | 
    
      # File 'lib/labclient/deploy_keys/deploy_key.rb', line 13 def update(query = {}) project_id = collect_project_id update_self client.deploy_keys.update(project_id, id, query) end  |