Class: Marbu::Builder::Mongodb
- Inherits:
-
Object
- Object
- Marbu::Builder::Mongodb
- Defined in:
- lib/marbu/builders/mongodb.rb
Class Method Summary collapse
- .finalize(finalize, format) ⇒ Object
- .map(map, format) ⇒ Object
- .query(query, format) ⇒ Object
- .reduce(reduce, format) ⇒ Object
Class Method Details
.finalize(finalize, format) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/marbu/builders/mongodb.rb', line 19 def self.finalize(finalize, format) case format when :text then self.finalize_int(finalize) when :mongodb then cleanup(self.finalize_int(finalize)) end end |
.map(map, format) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/marbu/builders/mongodb.rb', line 4 def self.map(map, format) case format when :text then map_int(map) when :mongodb then cleanup(map_int(map)) end end |
.query(query, format) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/marbu/builders/mongodb.rb', line 26 def self.query(query, format) case format when :text then self.query_int(query) when :mongodb then cleanup(self.query_int(query)) end end |
.reduce(reduce, format) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/marbu/builders/mongodb.rb', line 11 def self.reduce(reduce, format) case format when :text then self.reduce_int(reduce) when :mongodb then cleanup(self.reduce_int(reduce)) end end |