Class: Daodalus::DSL::Aggregation::Skip
- Inherits:
-
Object
- Object
- Daodalus::DSL::Aggregation::Skip
- Includes:
- Daodalus::DSL::Aggregations
- Defined in:
- lib/daodalus/dsl/aggregation/skip.rb
Instance Method Summary collapse
-
#initialize(dao, aggregations, skip) ⇒ Skip
constructor
A new instance of Skip.
- #to_aggregation ⇒ Object
Methods included from Daodalus::DSL::Aggregations
#aggregate, #group, #limit, #match, #pipeline, #project, #sort, #unwind
Constructor Details
#initialize(dao, aggregations, skip) ⇒ Skip
Returns a new instance of Skip.
7 8 9 10 11 |
# File 'lib/daodalus/dsl/aggregation/skip.rb', line 7 def initialize(dao, aggregations, skip) @dao = dao @aggregations = aggregations @skip = skip end |
Instance Method Details
#to_aggregation ⇒ Object
13 14 15 |
# File 'lib/daodalus/dsl/aggregation/skip.rb', line 13 def to_aggregation { '$skip' => skip } end |