Class: Avm::EacGitlabBase0::Api::Root
- Inherits:
-
BaseEntity
- Object
- EacRest::Entity
- BaseEntity
- Avm::EacGitlabBase0::Api::Root
show all
- Defined in:
- lib/avm/eac_gitlab_base0/api/root.rb
Instance Method Summary
collapse
Methods inherited from BaseEntity
#delete, #dump_debug, #dump_response, #encode_id, #fetch_entities, #fetch_entity
Instance Method Details
#group(id) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/avm/eac_gitlab_base0/api/root.rb', line 13
def group(id)
fetch_entity(
"/v4/groups/#{encode_id(id)}?with_projects=false",
::Avm::EacGitlabBase0::Api::Group
)
end
|
21
22
23
24
25
26
|
# File 'lib/avm/eac_gitlab_base0/api/root.rb', line 21
def groups
fetch_entities(
'/v4/groups?with_projects=false',
::Avm::EacGitlabBase0::Api::Group
)
end
|
#project(id) ⇒ Object
28
29
30
31
32
33
|
# File 'lib/avm/eac_gitlab_base0/api/root.rb', line 28
def project(id)
fetch_entity(
"/v4/projects/#{encode_id(id)}",
::Avm::EacGitlabBase0::Api::Project
)
end
|
#projects ⇒ Array<Avm::EacGitlabBase0::Api::Projects>
36
37
38
39
40
41
|
# File 'lib/avm/eac_gitlab_base0/api/root.rb', line 36
def projects
fetch_entities(
'/v4/projects',
::Avm::EacGitlabBase0::Api::Project
)
end
|