lib/dynamoid/adapter_plugin/aws_sdk_v2.rb
# Builds an aws attribute definition based on name and dynamoid type
# @params [Symbol] name - eg: :id
# @params [Symbol] dynamoid_type - eg: :string
# @return [Hash]
Builds an aws attribute definition based on name and dynamoid type
Builds an aws attribute definition based on name and dynamoid type
def attribute_definition_element(name, dynamoid_type)
        aws_type = api_type(dynamoid_type)
        {
          :attribute_name => name.to_s,
          :attribute_type => aws_type
        }
      end
def attribute_definition_element ( name , dynamoid_type ) aws_type = api_type ( dynamoid_type ) { :attribute_name => name . to_s , :attribute_type => aws_type } end
Builds an aws attribute definition based on name and dynamoid type
Builds an aws attribute definition based on name and dynamoid type
None
Hash
name
dynamoid_type
params
[Symbol] name - eg: :id
[ Symbol ] name - eg : : id
params
[Symbol] dynamoid_type - eg: :string
[ Symbol ] dynamoid_type - eg : : string