Class: Care::AutoFinder::Searcher::ArtificalRelation

Inherits:
Object
  • Object
show all
Defined in:
lib/care/auto_finder/searcher.rb

Overview

Исскуственая модель, имеющая функцию arel_table

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_name) ⇒ ArtificalRelation

Returns a new instance of ArtificalRelation.



88
89
90
# File 'lib/care/auto_finder/searcher.rb', line 88

def initialize(table_name)
  @table_name = table_name
end

Instance Attribute Details

#table_nameObject

Returns the value of attribute table_name.



86
87
88
# File 'lib/care/auto_finder/searcher.rb', line 86

def table_name
  @table_name
end

Instance Method Details

#arel_tableObject



92
93
94
# File 'lib/care/auto_finder/searcher.rb', line 92

def arel_table
  Arel::Table.new(table_name)
end

#columns_hashObject



96
97
98
# File 'lib/care/auto_finder/searcher.rb', line 96

def columns_hash
  {}
end