Class: Dynomite::Item::Indexes::Index
- Inherits:
-
Object
- Object
- Dynomite::Item::Indexes::Index
- Defined in:
- lib/dynomite/item/indexes/index.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(data) ⇒ Index
constructor
A new instance of Index.
- #primary? ⇒ Boolean
Constructor Details
#initialize(data) ⇒ Index
Returns a new instance of Index.
7 8 9 |
# File 'lib/dynomite/item/indexes/index.rb', line 7 def initialize(data) @data = data # from describe_table.table.global_secondary_indexes items end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/dynomite/item/indexes/index.rb', line 6 def data @data end |
Instance Method Details
#fields ⇒ Object
11 12 13 14 15 |
# File 'lib/dynomite/item/indexes/index.rb', line 11 def fields key_schema.map do |hash| hash.attribute_name end.sort end |
#primary? ⇒ Boolean
17 18 19 |
# File 'lib/dynomite/item/indexes/index.rb', line 17 def primary? false end |