Class: LabClient::GroupLabel
- Includes:
- ClassHelpers
- Defined in:
- lib/labclient/groups/labels/group_label.rb
Overview
Inspect Helper
Instance Attribute Summary
Attributes inherited from Klass
Attributes inherited from LabStruct
Instance Method Summary collapse
- #delete ⇒ Object
- #group ⇒ Object
- #inspect ⇒ Object
- #subscribe ⇒ Object
- #unsubscribe ⇒ Object
- #update(query) ⇒ Object
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
21 22 23 24 25 |
# File 'lib/labclient/groups/labels/group_label.rb', line 21 def delete group_id = collect_group_id client.groups.labels.delete(group_id, id) end |
#group ⇒ Object
10 11 12 13 |
# File 'lib/labclient/groups/labels/group_label.rb', line 10 def group group_id = collect_group_id client.groups.show group_id end |
#inspect ⇒ Object
6 7 8 |
# File 'lib/labclient/groups/labels/group_label.rb', line 6 def inspect "#<GroupLabel id: #{id}, name: #{name}>" end |
#subscribe ⇒ Object
27 28 29 30 31 |
# File 'lib/labclient/groups/labels/group_label.rb', line 27 def subscribe group_id = collect_group_id client.groups.labels.subscribe(group_id, id) end |
#unsubscribe ⇒ Object
33 34 35 36 37 |
# File 'lib/labclient/groups/labels/group_label.rb', line 33 def unsubscribe group_id = collect_group_id client.groups.labels.unsubscribe(group_id, id) end |
#update(query) ⇒ Object
15 16 17 18 19 |
# File 'lib/labclient/groups/labels/group_label.rb', line 15 def update(query) group_id = collect_group_id update_self client.groups.labels.update(group_id, id, query) end |