Class: FmStore::Associations::HasMany
- Defined in:
- lib/fm_store/associations/has_many.rb
Instance Attribute Summary collapse
-
#association_name ⇒ Object
Returns the value of attribute association_name.
-
#klass ⇒ Object
Returns the value of attribute klass.
Attributes inherited from Proxy
Instance Method Summary collapse
-
#initialize(layout, options) ⇒ HasMany
constructor
A new instance of HasMany.
Methods inherited from Proxy
Constructor Details
#initialize(layout, options) ⇒ HasMany
Returns a new instance of HasMany.
9 10 11 12 13 14 15 |
# File 'lib/fm_store/associations/has_many.rb', line 9 def initialize(layout, ) @layout, @association_name = layout, .name @klass, @reference_key, @options = .klass, .reference_key, @format_with = .format_with build_children end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FmStore::Associations::Proxy
Instance Attribute Details
#association_name ⇒ Object
Returns the value of attribute association_name.
6 7 8 |
# File 'lib/fm_store/associations/has_many.rb', line 6 def association_name @association_name end |
#klass ⇒ Object
Returns the value of attribute klass.
6 7 8 |
# File 'lib/fm_store/associations/has_many.rb', line 6 def klass @klass end |