Class: TopologicalInventory::Providers::Common::Collector::InventoryCollectionWrapper

Inherits:
TopologicalInventoryIngressApiClient::InventoryCollection
  • Object
show all
Defined in:
lib/topological_inventory/providers/common/collector/inventory_collection_wrapper.rb

Instance Method Summary collapse

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