app/models/manager_refresh/inventory_collection/index/type/skeletal.rb
def build(attributes)
            attributes = {}.merge!(builder_params).merge!(attributes)

            # If the primary index is already filled, we don't want populate skeletal index
            uuid = ::ManagerRefresh::InventoryCollection::Reference.build_stringified_reference(attributes, named_ref)
            return if primary_index.find(uuid)

            # Return if skeletal index already exists
            return if index[uuid]

            # We want to populate a new skeletal index
            inventory_object                     = new_inventory_object(attributes)
            index[inventory_object.manager_uuid] = inventory_object
          end
# Builds index record with skeletal InventoryObject and returns it, or returns nil if it's already present
# in primary_index or skeletal_primary_index
#
# @param attributes [Hash] Skeletal data of the index, must contain unique index keys and everything else
#        needed for creating the record in the Database
# @return [InventoryObject|nil] Returns built value or nil
Builds index record with skeletal InventoryObject and returns it, or returns nil if it's already present
in primary_index or skeletal_primary_index
Builds index record with skeletal InventoryObject and returns it or returns nil if it ' s already present in primary_index or skeletal_primary_index
def build(attributes)
            attributes = {}.merge!(builder_params).merge!(attributes)
            uuid = ::ManagerRefresh::InventoryCollection::Reference.build_stringified_reference(attributes, named_ref)
            return if primary_index.find(uuid)
            return if index[uuid]
            inventory_object                     = new_inventory_object(attributes)
            index[inventory_object.manager_uuid] = inventory_object
          end
def build ( attributes ) attributes = { } . merge! ( builder_params ) . merge! ( attributes ) uuid = :: ManagerRefresh :: InventoryCollection :: Reference . build_stringified_reference ( attributes , named_ref ) return if primary_index . find ( uuid ) return if index [ uuid ] inventory_object = new_inventory_object ( attributes ) index [ inventory_object . manager_uuid ] = inventory_object end
Builds index record with skeletal InventoryObject and returns it, or returns nil if it's already present
in primary_index or skeletal_primary_index
Builds index record with skeletal InventoryObject and returns it or returns nil if it ' s already present in primary_index or skeletal_primary_index
# If the primary index is already filled, we don't want populate skeletal index # Return if skeletal index already exists # We want to populate a new skeletal index
Returns built value or nil
Returns built value or nil
InventoryObject|nil
attributes
Skeletal data of the index, must contain unique index keys and everything else needed for creating the record in the Database
Skeletal data of the index must contain unique index keys and everything else needed for creating the record in the Database