lib/inventory_refresh/inventory_collection/index/type/data.rb
require "inventory_refresh/inventory_collection/index/type/base"
module InventoryRefresh
class InventoryCollection
module Index
module Type
class Data < InventoryRefresh::InventoryCollection::Index::Type::Base
# Find value based on index_value
#
# @param index_value [String] a index_value of the InventoryObject we search in data
def find(index_value)
index[index_value]
end
# Deletes and returns the value on the index_value
#
# @param index_value [String] a index_value of the InventoryObject we search for
# @return [InventoryObject|nil] Returns found value or nil
def delete(index_value)
index.delete(index_value)
end
end
end
end
end
end