Class: Opsmgr::Settings::Microbosh::ProductList

Inherits:
Object
  • Object
show all
Defined in:
lib/opsmgr/settings/microbosh/product_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(product_hashes) ⇒ ProductList

Returns a new instance of 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

#findObject



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