Class: EasyMapper::Associations::HasMany
- Inherits:
-
Object
- Object
- EasyMapper::Associations::HasMany
- Defined in:
- lib/easy_mapper/associations/has_many.rb
Instance Attribute Summary collapse
-
#cls ⇒ Object
Returns the value of attribute cls.
-
#mapped_by ⇒ Object
Returns the value of attribute mapped_by.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, cls, mapped_by) ⇒ HasMany
constructor
A new instance of HasMany.
Constructor Details
#initialize(name, cls, mapped_by) ⇒ HasMany
Returns a new instance of HasMany.
6 7 8 9 10 |
# File 'lib/easy_mapper/associations/has_many.rb', line 6 def initialize(name, cls, mapped_by) @name = name @cls = cls @mapped_by = mapped_by end |
Instance Attribute Details
#cls ⇒ Object
Returns the value of attribute cls.
4 5 6 |
# File 'lib/easy_mapper/associations/has_many.rb', line 4 def cls @cls end |
#mapped_by ⇒ Object
Returns the value of attribute mapped_by.
4 5 6 |
# File 'lib/easy_mapper/associations/has_many.rb', line 4 def mapped_by @mapped_by end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/easy_mapper/associations/has_many.rb', line 4 def name @name end |