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, #validate_response_data
Instance Method Details
#group(id) ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/avm/eac_gitlab_base0/api/root.rb', line 12
def group(id)
fetch_entity(
"/groups/#{encode_id(id)}?with_projects=false",
::Avm::EacGitlabBase0::Api::Group,
'404 Group Not Found'
)
end
|
#project(id) ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/avm/eac_gitlab_base0/api/root.rb', line 20
def project(id)
fetch_entity(
"/projects/#{encode_id(id)}",
::Avm::EacGitlabBase0::Api::Project,
'404 Project Not Found'
)
end
|