class TopologicalInventory::Providers::Common::Collector::InventoryCollectionWrapper
Public Class Methods
new(name:)
click to toggle source
Calls superclass method
# File lib/topological_inventory/providers/common/collector/inventory_collection_wrapper.rb, line 6 def initialize(name:) super(:name => name, :data => []) end
Public Instance Methods
build(properties)
click to toggle source
# 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
Protected Instance Methods
get_model()
click to toggle source
# File lib/topological_inventory/providers/common/collector/inventory_collection_wrapper.rb, line 18 def get_model "TopologicalInventoryIngressApiClient::#{name.to_s.classify}".constantize end