Class: Avm::EacGitlabBase0::Api::Tree
- Inherits:
-
BaseEntity
- Object
- EacRest::Entity
- BaseEntity
- Avm::EacGitlabBase0::Api::Tree
show all
- Defined in:
- lib/avm/eac_gitlab_base0/api/tree.rb
Constant Summary
collapse
- FIELDS =
%w[mode name path type].freeze
Instance Method Summary
collapse
Methods inherited from BaseEntity
#delete, #dump_debug, #dump_response, #encode_id, #fetch_entities, #fetch_entity
Instance Method Details
#directory? ⇒ Boolean
25
26
27
|
# File 'lib/avm/eac_gitlab_base0/api/tree.rb', line 25
def directory?
type == TYPE_TREE
end
|
30
31
32
|
# File 'lib/avm/eac_gitlab_base0/api/tree.rb', line 30
def file
parent_entity.file(path)
end
|
#file? ⇒ Boolean
35
36
37
|
# File 'lib/avm/eac_gitlab_base0/api/tree.rb', line 35
def file?
type == TYPE_BLOB
end
|