Class: Opsmgr::Settings::Microbosh::PropertyList

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

Instance Method Summary collapse

Constructor Details

#initialize(property_hashes) ⇒ PropertyList

Returns a new instance of PropertyList.



7
8
9
# File 'lib/opsmgr/settings/microbosh/property_list.rb', line 7

def initialize(property_hashes)
  @property_hashes = property_hashes
end

Instance Method Details

#findObject



11
12
13
14
15
# File 'lib/opsmgr/settings/microbosh/property_list.rb', line 11

def find
  @property_hashes.find do |property_hash|
    yield Property.new(property_hash)
  end
end