Class: Yoda::Store::Objects::LibrariesStatus::Connected

Inherits:
Object
  • Object
show all
Extended by:
ConnectedDelegation
Defined in:
lib/yoda/store/objects/libraries_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConnectedDelegation

delegate_to_object

Constructor Details

#initialize(object, project:) ⇒ Connected

Returns a new instance of Connected.

Parameters:



48
49
50
51
# File 'lib/yoda/store/objects/libraries_status.rb', line 48

def initialize(object, project:)
  @object = object
  @project = project
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



44
45
46
# File 'lib/yoda/store/objects/libraries_status.rb', line 44

def object
  @object
end

#projectObject (readonly)

Returns the value of attribute project.



44
45
46
# File 'lib/yoda/store/objects/libraries_status.rb', line 44

def project
  @project
end

Instance Method Details

#librariesArray<Library::Core::Connected, Library::Std::Connected, Library::Gem::Connected>



54
55
56
# File 'lib/yoda/store/objects/libraries_status.rb', line 54

def libraries
  object.libraries.map { |library| library.with_project_connection(project: project) }
end

#registriesArray<Registry::LibraryRegistry>

Returns:



60
61
62
# File 'lib/yoda/store/objects/libraries_status.rb', line 60

def registries
  libraries.map(&:registry).compact
end