Class: MR::ReadModel::MergeQueryExpression
- Inherits:
-
Object
- Object
- MR::ReadModel::MergeQueryExpression
- Defined in:
- lib/mr/read_model/query_expression.rb
Instance Attribute Summary collapse
-
#query_expression ⇒ Object
Returns the value of attribute query_expression.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #apply_to(relation, params = nil) ⇒ Object
-
#initialize(type, *args, &block) ⇒ MergeQueryExpression
constructor
A new instance of MergeQueryExpression.
Constructor Details
#initialize(type, *args, &block) ⇒ MergeQueryExpression
Returns a new instance of MergeQueryExpression.
48 49 50 51 |
# File 'lib/mr/read_model/query_expression.rb', line 48 def initialize(type, *args, &block) @type = type @query_expression = QueryExpression.new(:merge, *args, &block) end |
Instance Attribute Details
#query_expression ⇒ Object
Returns the value of attribute query_expression.
46 47 48 |
# File 'lib/mr/read_model/query_expression.rb', line 46 def query_expression @query_expression end |
#type ⇒ Object
Returns the value of attribute type.
46 47 48 |
# File 'lib/mr/read_model/query_expression.rb', line 46 def type @type end |
Instance Method Details
#apply_to(relation, params = nil) ⇒ Object
53 54 55 |
# File 'lib/mr/read_model/query_expression.rb', line 53 def apply_to(relation, params = nil) @query_expression.apply_to(relation, params) end |