Class: RailsAgnosticModels::ArelTranslator::Translator
- Inherits:
-
Object
- Object
- RailsAgnosticModels::ArelTranslator::Translator
- Defined in:
- lib/rails_agnostic_models/arel_translator/translator.rb
Instance Attribute Summary collapse
-
#arel_string ⇒ Object
Returns the value of attribute arel_string.
-
#search_hash ⇒ Object
Returns the value of attribute search_hash.
Instance Method Summary collapse
-
#initialize(search_hash) ⇒ Translator
constructor
A new instance of Translator.
- #translate! ⇒ Object
Constructor Details
#initialize(search_hash) ⇒ Translator
Returns a new instance of Translator.
8 9 10 11 |
# File 'lib/rails_agnostic_models/arel_translator/translator.rb', line 8 def initialize(search_hash) @search_hash = search_hash @arel_string = "" end |
Instance Attribute Details
#arel_string ⇒ Object
Returns the value of attribute arel_string.
6 7 8 |
# File 'lib/rails_agnostic_models/arel_translator/translator.rb', line 6 def arel_string @arel_string end |
#search_hash ⇒ Object
Returns the value of attribute search_hash.
6 7 8 |
# File 'lib/rails_agnostic_models/arel_translator/translator.rb', line 6 def search_hash @search_hash end |
Instance Method Details
#translate! ⇒ Object
13 14 15 16 |
# File 'lib/rails_agnostic_models/arel_translator/translator.rb', line 13 def translate! (search_hash) arel_string end |