Class: Gitlab::DependencyLinker::Package
- Inherits:
-
Object
- Object
- Gitlab::DependencyLinker::Package
- Defined in:
- lib/gitlab/dependency_linker/package.rb
Instance Attribute Summary collapse
-
#git_ref ⇒ Object
readonly
Returns the value of attribute git_ref.
-
#github_ref ⇒ Object
readonly
Returns the value of attribute github_ref.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #external_ref ⇒ Object
-
#initialize(name, git_ref, github_ref) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(name, git_ref, github_ref) ⇒ Package
Returns a new instance of Package.
8 9 10 11 12 |
# File 'lib/gitlab/dependency_linker/package.rb', line 8 def initialize(name, git_ref, github_ref) @name = name @git_ref = git_ref @github_ref = github_ref end |
Instance Attribute Details
#git_ref ⇒ Object (readonly)
Returns the value of attribute git_ref.
6 7 8 |
# File 'lib/gitlab/dependency_linker/package.rb', line 6 def git_ref @git_ref end |
#github_ref ⇒ Object (readonly)
Returns the value of attribute github_ref.
6 7 8 |
# File 'lib/gitlab/dependency_linker/package.rb', line 6 def github_ref @github_ref end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/gitlab/dependency_linker/package.rb', line 6 def name @name end |
Instance Method Details
#external_ref ⇒ Object
14 15 16 |
# File 'lib/gitlab/dependency_linker/package.rb', line 14 def external_ref @git_ref || @github_ref end |