Class: Hario::PluckParser

Inherits:
Object
  • Object
show all
Includes:
ParserUtils
Defined in:
lib/hario/behaviours/pluck.rb

Constant Summary

Constants included from ParserUtils

ParserUtils::InvalidAttributeError

Instance Attribute Summary collapse

Instance Method Summary collapse

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_clauseObject

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_clauseObject

Returns the value of attribute pluck_clause.



7
8
9
# File 'lib/hario/behaviours/pluck.rb', line 7

def pluck_clause
  @pluck_clause
end