class TopologicalInventory::Providers::Common::Collector::Parser
Attributes
collections[RW]
resource_timestamp[RW]
Public Class Methods
new()
click to toggle source
# File lib/topological_inventory/providers/common/collector/parser.rb, line 12 def initialize @collections = InventoryCollectionStorage.new self.resource_timestamp = Time.now.utc end
Public Instance Methods
lazy_find(collection, reference, ref: :manager_ref)
click to toggle source
# File lib/topological_inventory/providers/common/collector/parser.rb, line 18 def lazy_find(collection, reference, ref: :manager_ref) return if reference.kind_of?(String) && reference.blank? # Don't make lazy link if all reference values are blank return if reference.kind_of?(Hash) && reference.values.select { |val| val.to_s.present? }.blank? TopologicalInventoryIngressApiClient::InventoryObjectLazy.new( :inventory_collection_name => collection, :reference => reference, :ref => ref, ) end