Class: Space::Model::Repo::Dependency
- Inherits:
-
Object
- Object
- Space::Model::Repo::Dependency
- Defined in:
- lib/space/model/repo/dependency.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Instance Method Summary collapse
- #fresh? ⇒ Boolean
-
#initialize(repo, ref) ⇒ Dependency
constructor
A new instance of Dependency.
- #name ⇒ Object
Constructor Details
#initialize(repo, ref) ⇒ Dependency
Returns a new instance of Dependency.
7 8 9 10 |
# File 'lib/space/model/repo/dependency.rb', line 7 def initialize(repo, ref) @repo = repo @ref = ref end |
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
5 6 7 |
# File 'lib/space/model/repo/dependency.rb', line 5 def ref @ref end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
5 6 7 |
# File 'lib/space/model/repo/dependency.rb', line 5 def repo @repo end |
Instance Method Details
#fresh? ⇒ Boolean
16 17 18 |
# File 'lib/space/model/repo/dependency.rb', line 16 def fresh? repo.ref == ref end |
#name ⇒ Object
12 13 14 |
# File 'lib/space/model/repo/dependency.rb', line 12 def name repo.name end |