Sha256: f2b78dcd525655515aec8b348b2f122ed71a374769a453d62255cbab68a41c55

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

module Dynomite::Item::Indexes
  class Index
    delegate :index_name, :key_schema, :projection, :index_status, :index_size_bytes, :item_count, :index_arn,
      to: :data

    attr_reader :data
    def initialize(data)
      @data = data # from describe_table.table.global_secondary_indexes items
    end

    def fields
      key_schema.map do |hash|
        hash.attribute_name
      end.sort
    end

    def primary?
      false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynomite-2.0.3 lib/dynomite/item/indexes/index.rb
dynomite-2.0.2 lib/dynomite/item/indexes/index.rb
dynomite-2.0.1 lib/dynomite/item/indexes/index.rb
dynomite-2.0.0 lib/dynomite/item/indexes/index.rb