Class: Hario::PluckParser
- Inherits:
-
Object
- Object
- Hario::PluckParser
- Includes:
- ParserUtils
- Defined in:
- lib/hario/behaviours/pluck.rb
Constant Summary
Constants included from ParserUtils
ParserUtils::InvalidAttributeError
Instance Attribute Summary collapse
-
#join_clause ⇒ Object
Returns the value of attribute join_clause.
-
#pluck_clause ⇒ Object
Returns the value of attribute pluck_clause.
Instance Method Summary collapse
-
#initialize(pluck, klass) ⇒ PluckParser
constructor
A new instance of PluckParser.
Methods included from ParserUtils
#end_model_from_association_chain, #raise_if_unlisted_attribute!, #table_name_from_association_chain
Constructor Details
#initialize(pluck, klass) ⇒ PluckParser
Returns a new instance of PluckParser.
9 10 11 12 13 14 |
# File 'lib/hario/behaviours/pluck.rb', line 9 def initialize(pluck, klass) @pluck = pluck @klass = klass parse_pluck end |
Instance Attribute Details
#join_clause ⇒ Object
Returns the value of attribute join_clause.
7 8 9 |
# File 'lib/hario/behaviours/pluck.rb', line 7 def join_clause @join_clause end |
#pluck_clause ⇒ Object
Returns the value of attribute pluck_clause.
7 8 9 |
# File 'lib/hario/behaviours/pluck.rb', line 7 def pluck_clause @pluck_clause end |