Class: Care::AutoFinder::Searcher::ArtificalRelation
- Inherits:
-
Object
- Object
- Care::AutoFinder::Searcher::ArtificalRelation
- Defined in:
- lib/care/auto_finder/searcher.rb
Overview
Исскуственая модель, имеющая функцию arel_table
Instance Attribute Summary collapse
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
- #arel_table ⇒ Object
- #columns_hash ⇒ Object
-
#initialize(table_name) ⇒ ArtificalRelation
constructor
A new instance of ArtificalRelation.
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_name ⇒ Object
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_table ⇒ Object
92 93 94 |
# File 'lib/care/auto_finder/searcher.rb', line 92 def arel_table Arel::Table.new(table_name) end |
#columns_hash ⇒ Object
96 97 98 |
# File 'lib/care/auto_finder/searcher.rb', line 96 def columns_hash {} end |