Class: Babik::QuerySet::Join::OriginTable

Inherits:
Object
  • Object
show all
Defined in:
lib/babik/queryset/lib/join/join.rb

Overview

Origin table of the join

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_alias, key) ⇒ OriginTable

Constructor

Parameters:

  • table_alias (String)

    origin table alias

  • key (String)

    field that serves as key.



79
80
81
82
# File 'lib/babik/queryset/lib/join/join.rb', line 79

def initialize(table_alias, key)
  @table_alias = table_alias
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



75
76
77
# File 'lib/babik/queryset/lib/join/join.rb', line 75

def key
  @key
end

#table_aliasObject (readonly)

Returns the value of attribute table_alias.



75
76
77
# File 'lib/babik/queryset/lib/join/join.rb', line 75

def table_alias
  @table_alias
end