Class: Arel::Relation::Operable::JoinOperation

Inherits:
Struct
  • Object
show all
Defined in:
lib/arel/algebra/relations/relation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#join_classObject

Returns the value of attribute join_class

Returns:

  • (Object)

    the current value of join_class



77
78
79
# File 'lib/arel/algebra/relations/relation.rb', line 77

def join_class
  @join_class
end

#relation1Object

Returns the value of attribute relation1

Returns:

  • (Object)

    the current value of relation1



77
78
79
# File 'lib/arel/algebra/relations/relation.rb', line 77

def relation1
  @relation1
end

#relation2Object

Returns the value of attribute relation2

Returns:

  • (Object)

    the current value of relation2



77
78
79
# File 'lib/arel/algebra/relations/relation.rb', line 77

def relation2
  @relation2
end

Instance Method Details

#on(*predicates) ⇒ Object



78
79
80
# File 'lib/arel/algebra/relations/relation.rb', line 78

def on(*predicates)
  join_class.new(relation1, relation2, *predicates)
end