Class: Daodalus::DSL::Aggregation::Skip

Inherits:
Object
  • Object
show all
Includes:
Daodalus::DSL::Aggregations
Defined in:
lib/daodalus/dsl/aggregation/skip.rb

Instance Method Summary collapse

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_aggregationObject



13
14
15
# File 'lib/daodalus/dsl/aggregation/skip.rb', line 13

def to_aggregation
  { '$skip' => skip }
end