Method: OceanDynamo::Tables::ClassMethods#table_attribute_definitions
- Defined in:
- lib/ocean-dynamo/tables.rb
#table_attribute_definitions ⇒ Object
129 130 131 132 133 134 |
# File 'lib/ocean-dynamo/tables.rb', line 129 def table_attribute_definitions attrs = [] attrs << { attribute_name: table_hash_key.to_s, attribute_type: attribute_type(table_hash_key) } attrs << { attribute_name: table_range_key.to_s, attribute_type: attribute_type(table_range_key) } if table_range_key attrs end |