Class: Gitlab::GlRepository::Identifier::TwoPartIdentifier
- Inherits:
-
Gitlab::GlRepository::Identifier
- Object
- Gitlab::GlRepository::Identifier
- Gitlab::GlRepository::Identifier::TwoPartIdentifier
- Defined in:
- lib/gitlab/gl_repository/identifier.rb
Overview
The older 2-segment format, where the container is implied. eg. project-1, wiki-1
Constant Summary
Constants inherited from Gitlab::GlRepository::Identifier
Instance Method Summary collapse
-
#initialize(repo_type_name, container_id_str) ⇒ TwoPartIdentifier
constructor
A new instance of TwoPartIdentifier.
Methods inherited from Gitlab::GlRepository::Identifier
#container, parse, #repo_type, #valid?
Constructor Details
#initialize(repo_type_name, container_id_str) ⇒ TwoPartIdentifier
Returns a new instance of TwoPartIdentifier.
32 33 34 35 |
# File 'lib/gitlab/gl_repository/identifier.rb', line 32 def initialize(repo_type_name, container_id_str) @container_id_str = container_id_str @repo_type_name = repo_type_name end |