Method: OceanDynamo::Tables::ClassMethods#table_key_schema
- Defined in:
- lib/ocean-dynamo/tables.rb
#table_key_schema(hash_key: table_hash_key, range_key: table_range_key) ⇒ Object
150 151 152 153 154 155 |
# File 'lib/ocean-dynamo/tables.rb', line 150 def table_key_schema(hash_key: table_hash_key, range_key: table_range_key) keys = [] keys << { attribute_name: hash_key.to_s, key_type: "HASH" } keys << { attribute_name: range_key.to_s, key_type: "RANGE" } if range_key keys end |