Module: Dynamoid::Associations::Association
- Included in:
- HasOne, ManyAssociation, SingleAssociation
- Defined in:
- lib/dynamoid/associations/association.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, name, options) ⇒ Dynamoid::Association
Create a new association.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/dynamoid/associations/association.rb', line 10 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/dynamoid/associations/association.rb', line 10 def @options end |
#source ⇒ Object
Returns the value of attribute source.
10 11 12 |
# File 'lib/dynamoid/associations/association.rb', line 10 def source @source end |
Instance Method Details
#initialize(source, name, options) ⇒ Dynamoid::Association
Create a new association.
27 28 29 30 31 32 |
# File 'lib/dynamoid/associations/association.rb', line 27 def initialize(source, name, ) @name = name @options = @source = source @loaded = false end |