Class: LabClient::GroupMilestone
Overview
Instance Attribute Summary
Attributes inherited from Klass
#client, #response
Attributes inherited from LabStruct
#response
Instance Method Summary
collapse
#has?, #keys, #raw
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
#curl
Methods inherited from LabStruct
#as_json, #client, #keys, #slice, #success?
Instance Method Details
#burndown ⇒ Object
30
31
32
33
|
# File 'lib/labclient/groups/milestones/group_milestone.rb', line 30
def burndown
group_id = collect_group_id
client.groups.milestones.burndown(group_id, id)
end
|
#delete ⇒ Object
35
36
37
38
|
# File 'lib/labclient/groups/milestones/group_milestone.rb', line 35
def delete
group_id = collect_group_id
client.groups.milestones.delete(group_id, id)
end
|
#group ⇒ Object
11
12
13
|
# File 'lib/labclient/groups/milestones/group_milestone.rb', line 11
def group
client.groups.show group_id
end
|
#inspect ⇒ Object
7
8
9
|
# File 'lib/labclient/groups/milestones/group_milestone.rb', line 7
def inspect
"#<GroupMilestone id: #{id}, title: #{title}>"
end
|
#issues ⇒ Object
20
21
22
23
|
# File 'lib/labclient/groups/milestones/group_milestone.rb', line 20
def issues
group_id = collect_group_id
client.groups.milestones.issues(group_id, id)
end
|
#merge_requests ⇒ Object
25
26
27
28
|
# File 'lib/labclient/groups/milestones/group_milestone.rb', line 25
def merge_requests
group_id = collect_group_id
client.groups.milestones.merge_requests(group_id, id)
end
|
#update(query = {}) ⇒ Object
15
16
17
18
|
# File 'lib/labclient/groups/milestones/group_milestone.rb', line 15
def update(query = {})
group_id = collect_group_id
update_self client.groups.milestones.update(group_id, id, query)
end
|