class Opsmgr::Settings::Microbosh::ProductList

Public Class Methods

new(product_hashes) click to toggle source
# File lib/opsmgr/settings/microbosh/product_list.rb, line 7
def initialize(product_hashes)
  @product_hashes = product_hashes
end

Public Instance Methods

find() { |product| ... } click to toggle source
# 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