Class: Opsmgr::Settings::Microbosh::ProductList
- Inherits:
-
Object
- Object
- Opsmgr::Settings::Microbosh::ProductList
- Defined in:
- lib/opsmgr/settings/microbosh/product_list.rb
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(product_hashes) ⇒ ProductList
constructor
A new instance of ProductList.
Constructor Details
#initialize(product_hashes) ⇒ ProductList
7 8 9 |
# File 'lib/opsmgr/settings/microbosh/product_list.rb', line 7 def initialize(product_hashes) @product_hashes = product_hashes end |
Instance Method Details
#find ⇒ Object
11 12 13 14 15 |
# File 'lib/opsmgr/settings/microbosh/product_list.rb', line 11 def find @product_hashes.find do |product_hash| yield(Product.new(product_hash)) end end |