Class: Dynamodb::Api::Relation::GlobalSecondaryIndex
- Inherits:
-
Object
- Object
- Dynamodb::Api::Relation::GlobalSecondaryIndex
- Defined in:
- lib/dynamodb/api/relation/global_secondary_index.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ GlobalSecondaryIndex
constructor
A new instance of GlobalSecondaryIndex.
Constructor Details
#initialize(name) ⇒ GlobalSecondaryIndex
Returns a new instance of GlobalSecondaryIndex.
9 10 11 12 13 14 |
# File 'lib/dynamodb/api/relation/global_secondary_index.rb', line 9 def initialize(name) if Dynamodb::Api::Config.index_name_prefix? name = Dynamodb::Api::Config.index_name_prefix + name end @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/dynamodb/api/relation/global_secondary_index.rb', line 7 def name @name end |