Class: Babik::QuerySet::Join::TargetTable

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

Overview

Target table of the join

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, table_alias, key) ⇒ TargetTable

Constructor

Parameters:

  • name (String)

    target table name

  • table_alias (String)

    target table alias

  • key (String)

    field that serves as key in the target table.



66
67
68
69
70
# File 'lib/babik/queryset/lib/join/join.rb', line 66

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



61
62
63
# File 'lib/babik/queryset/lib/join/join.rb', line 61

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



61
62
63
# File 'lib/babik/queryset/lib/join/join.rb', line 61

def name
  @name
end

#table_aliasObject (readonly)

Returns the value of attribute table_alias.



61
62
63
# File 'lib/babik/queryset/lib/join/join.rb', line 61

def table_alias
  @table_alias
end