Class: Space::Model::Repo::Dependency

Inherits:
Object
  • Object
show all
Defined in:
lib/space/model/repo/dependency.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#refObject (readonly)

Returns the value of attribute ref.



5
6
7
# File 'lib/space/model/repo/dependency.rb', line 5

def ref
  @ref
end

#repoObject (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

Returns:

  • (Boolean)


16
17
18
# File 'lib/space/model/repo/dependency.rb', line 16

def fresh?
  repo.ref == ref
end

#nameObject



12
13
14
# File 'lib/space/model/repo/dependency.rb', line 12

def name
  repo.name
end