Sha256: 31a727c89e1c1a7f35b0cc4de4271a9f5b76bc251a2b9f6dcc788de378d39f98

Contents?: true

Size: 819 Bytes

Versions: 22

Compression:

Stored size: 819 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
inventory_refresh-2.2.0 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-2.1.1 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-2.1.0 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-2.0.0 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-1.1.0 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-1.0.0 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.2.3 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.2.2 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.3.6 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.3.5 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.3.4 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.3.3 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.2.1 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.3.2 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.3.1 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.3.0 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.2.0 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.1.3 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.1.2 lib/inventory_refresh/inventory_collection/index/type/data.rb
inventory_refresh-0.1.1 lib/inventory_refresh/inventory_collection/index/type/data.rb