Class: Dynamoid::CDK::Schema::Attribute
- Inherits:
-
Data
- Object
- Data
- Dynamoid::CDK::Schema::Attribute
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
8 9 10 |
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 8 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
8 9 10 |
# File 'lib/dynamoid/cdk/schema/descriptor.rb', line 8 def type @type end |