Class: Gitlab::GlRepository::Identifier::TwoPartIdentifier

Inherits:
Gitlab::GlRepository::Identifier show all
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

InvalidIdentifier

Instance Method Summary collapse

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