Class: Dynamoid::CDK::Schema::Attribute

Inherits:
Data
  • Object
show all
Defined in:
lib/dynamoid/cdk/schema/descriptor.rb

Overview

A DynamoDB attribute used as a key: its name and DynamoDB type (+:string+, :number or :binary).

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



8
9
10
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 8

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 8

def type
  @type
end