Class: LabClient::ProjectRelease
Overview
Instance Attribute Summary
Attributes inherited from Klass
#client
Attributes inherited from LabStruct
#response, #table
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, #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
#curl
Methods included from Logger
#logger, logger, logger_setup
Methods inherited from LabStruct
#[], #[]=, #as_json, #client, #initialize, #key?, #keys, #method_missing, #respond_to_missing?, #slice, #success?, #to_h
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class LabClient::LabStruct
Instance Method Details
#commit ⇒ Object
34
35
36
|
# File 'lib/labclient/projects/releases/project_release.rb', line 34
def commit
Commit.new(@table[:commit], response, client)
end
|
#delete ⇒ Object
22
23
24
25
26
|
# File 'lib/labclient/projects/releases/project_release.rb', line 22
def delete
project_id = collect_project_id
client.projects.releases.delete(project_id, tag_name)
end
|
#evidence ⇒ Object
28
29
30
31
32
|
# File 'lib/labclient/projects/releases/project_release.rb', line 28
def evidence
project_id = collect_project_id
client.projects.releases.evidence(project_id, tag_name)
end
|
#inspect ⇒ Object
7
8
9
|
# File 'lib/labclient/projects/releases/project_release.rb', line 7
def inspect
"#<ProjectRelease tag_name: #{tag_name}, name: #{name}>"
end
|
#links ⇒ Object
38
39
40
41
42
|
# File 'lib/labclient/projects/releases/project_release.rb', line 38
def links
project_id = collect_project_id
client.projects.release_links.list(project_id, tag_name)
end
|
#project ⇒ Object
11
12
13
14
|
# File 'lib/labclient/projects/releases/project_release.rb', line 11
def project
project_id = collect_project_id
client.projects.show project_id
end
|
#update(query) ⇒ Object
16
17
18
19
20
|
# File 'lib/labclient/projects/releases/project_release.rb', line 16
def update(query)
project_id = collect_project_id
update_self client.projects.releases.update(project_id, tag_name, body: query)
end
|