Class: PassiveRecord::Associations::HasManyThroughAssociation

Inherits:
Struct
  • Object
show all
Defined in:
lib/passive_record/associations/has_many_through.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_associationObject

Returns the value of attribute base_association

Returns:

  • (Object)

    the current value of base_association



3
4
5
# File 'lib/passive_record/associations/has_many_through.rb', line 3

def base_association
  @base_association
end

#child_class_nameObject

Returns the value of attribute child_class_name

Returns:

  • (Object)

    the current value of child_class_name



3
4
5
# File 'lib/passive_record/associations/has_many_through.rb', line 3

def child_class_name
  @child_class_name
end

#habtmObject

Returns the value of attribute habtm

Returns:

  • (Object)

    the current value of habtm



3
4
5
# File 'lib/passive_record/associations/has_many_through.rb', line 3

def habtm
  @habtm
end

#parent_classObject

Returns the value of attribute parent_class

Returns:

  • (Object)

    the current value of parent_class



3
4
5
# File 'lib/passive_record/associations/has_many_through.rb', line 3

def parent_class
  @parent_class
end

#target_name_symbolObject

Returns the value of attribute target_name_symbol

Returns:

  • (Object)

    the current value of target_name_symbol



3
4
5
# File 'lib/passive_record/associations/has_many_through.rb', line 3

def target_name_symbol
  @target_name_symbol
end

#through_classObject

Returns the value of attribute through_class

Returns:

  • (Object)

    the current value of through_class



3
4
5
# File 'lib/passive_record/associations/has_many_through.rb', line 3

def through_class
  @through_class
end

Instance Method Details

#to_relation(parent_model) ⇒ Object



4
5
6
# File 'lib/passive_record/associations/has_many_through.rb', line 4

def to_relation(parent_model)
  HasManyThroughRelation.new(self, parent_model)
end