Class: TopologicalInventory::Providers::Common::Collector::InventoryCollectionWrapper
- Inherits:
-
TopologicalInventoryIngressApiClient::InventoryCollection
- Object
- TopologicalInventoryIngressApiClient::InventoryCollection
- TopologicalInventory::Providers::Common::Collector::InventoryCollectionWrapper
- Defined in:
- lib/topological_inventory/providers/common/collector/inventory_collection_wrapper.rb
Instance Method Summary collapse
- #build(properties) ⇒ Object
-
#initialize(name:) ⇒ InventoryCollectionWrapper
constructor
A new instance of InventoryCollectionWrapper.
Constructor Details
#initialize(name:) ⇒ InventoryCollectionWrapper
Returns a new instance of InventoryCollectionWrapper.
6 7 8 |
# File 'lib/topological_inventory/providers/common/collector/inventory_collection_wrapper.rb', line 6 def initialize(name:) super(:name => name, :data => []) end |
Instance Method Details
#build(properties) ⇒ Object
10 11 12 13 14 |
# File 'lib/topological_inventory/providers/common/collector/inventory_collection_wrapper.rb', line 10 def build(properties) obj = get_model.new(properties) data << obj obj end |