class InventoryRefresh::InventoryCollection::Index::Type::Data
Public Instance Methods
delete(index_value)
click to toggle source
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
# File lib/inventory_refresh/inventory_collection/index/type/data.rb, line 19 def delete(index_value) index.delete(index_value) end
find(index_value)
click to toggle source
Find value based on index_value
@param index_value [String] a index_value of the InventoryObject
we search in data
# File lib/inventory_refresh/inventory_collection/index/type/data.rb, line 11 def find(index_value) index[index_value] end