Class: ActiveShepherd::QueryMethod
- Defined in:
- lib/active_shepherd/method.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Attributes inherited from Method
#aggregate, #associations, #attributes
Instance Method Summary collapse
-
#initialize(*args) ⇒ QueryMethod
constructor
A new instance of QueryMethod.
- #setup ⇒ Object
Methods inherited from Method
inherited, #recurse, #traverse!
Constructor Details
#initialize(*args) ⇒ QueryMethod
Returns a new instance of QueryMethod.
40 41 42 43 |
# File 'lib/active_shepherd/method.rb', line 40 def initialize(*args) super @query = {} end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
38 39 40 |
# File 'lib/active_shepherd/method.rb', line 38 def query @query end |
Instance Method Details
#setup ⇒ Object
45 46 47 |
# File 'lib/active_shepherd/method.rb', line 45 def setup @associations = aggregate.traversable_associations end |