Class: EasyMapper::Associations::HasMany

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_mapper/associations/has_many.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clsObject

Returns the value of attribute cls.



4
5
6
# File 'lib/easy_mapper/associations/has_many.rb', line 4

def cls
  @cls
end

#mapped_byObject

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/easy_mapper/associations/has_many.rb', line 4

def name
  @name
end