Class: Specinfra::HostInventory
- Inherits:
-
Object
- Object
- Specinfra::HostInventory
- Includes:
- Singleton
- Defined in:
- lib/specinfra/host_inventory.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize ⇒ HostInventory
constructor
A new instance of HostInventory.
Constructor Details
#initialize ⇒ HostInventory
Returns a new instance of HostInventory.
5 6 7 8 |
# File 'lib/specinfra/host_inventory.rb', line 5 def initialize property[:host_inventory] ||= {} @inventory = property[:host_inventory] end |