Class: Yoda::Store::Objects::LibrariesStatus::Connected
- Inherits:
-
Object
- Object
- Yoda::Store::Objects::LibrariesStatus::Connected
- Extended by:
- ConnectedDelegation
- Defined in:
- lib/yoda/store/objects/libraries_status.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(object, project:) ⇒ Connected
constructor
A new instance of Connected.
- #libraries ⇒ Array<Library::Core::Connected, Library::Std::Connected, Library::Gem::Connected>
- #registries ⇒ Array<Registry::LibraryRegistry>
Methods included from ConnectedDelegation
Constructor Details
#initialize(object, project:) ⇒ Connected
Returns a new instance of Connected.
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
#object ⇒ Object (readonly)
Returns the value of attribute object.
44 45 46 |
# File 'lib/yoda/store/objects/libraries_status.rb', line 44 def object @object end |
#project ⇒ Object (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
#libraries ⇒ Array<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 |
#registries ⇒ Array<Registry::LibraryRegistry>
60 61 62 |
# File 'lib/yoda/store/objects/libraries_status.rb', line 60 def registries libraries.map(&:registry).compact end |