Class: Gitlab::GlRepository::Identifier::ThreePartIdentifier

Inherits:
Gitlab::GlRepository::Identifier show all
Defined in:
lib/gitlab/gl_repository/identifier.rb

Overview

The newer 3-segment format, where the container is explicit eg. group-1-wiki, project-1-wiki

Constant Summary

Constants inherited from Gitlab::GlRepository::Identifier

InvalidIdentifier

Instance Method Summary collapse

Methods inherited from Gitlab::GlRepository::Identifier

#container, parse, #repo_type, #valid?

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Constructor Details

#initialize(container_type, container_id_str, repo_type_name) ⇒ ThreePartIdentifier

Returns a new instance of ThreePartIdentifier.


47
48
49
50
51
# File 'lib/gitlab/gl_repository/identifier.rb', line 47

def initialize(container_type, container_id_str, repo_type_name)
  @container_id_str = container_id_str
  @container_type = container_type
  @repo_type_name = repo_type_name
end