Class: Daodalus::DSL::Aggregation::Match
- Inherits:
-
Object
- Object
- Daodalus::DSL::Aggregation::Match
- Includes:
- Daodalus::DSL::Aggregations, Matchers
- Defined in:
- lib/daodalus/dsl/aggregation/match.rb
Instance Method Summary collapse
-
#initialize(dao, aggregations, query, field) ⇒ Match
constructor
A new instance of Match.
- #to_aggregation ⇒ Object
Methods included from Daodalus::DSL::Aggregations
#aggregate, #group, #limit, #match, #pipeline, #project, #skip, #sort, #unwind
Methods included from Matchers
#all, #any, #does_not_exist, #elem_match, #eq, #exists, #gt, #gte, #in, #lt, #lte, #ne, #nin, #none, #not, #size
Constructor Details
#initialize(dao, aggregations, query, field) ⇒ Match
8 9 10 11 12 13 |
# File 'lib/daodalus/dsl/aggregation/match.rb', line 8 def initialize(dao, aggregations, query, field) @dao = dao @aggregations = aggregations @query = query @field = field end |
Instance Method Details
#to_aggregation ⇒ Object
17 18 19 |
# File 'lib/daodalus/dsl/aggregation/match.rb', line 17 def to_aggregation { '$match' => query.wheres } end |