Class: Couchup::Commands::Map
- Inherits:
-
Object
- Object
- Couchup::Commands::Map
- Defined in:
- lib/couchup/commands/map.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.describe(p = nil) ⇒ Object
12 13 14 |
# File 'lib/couchup/commands/map.rb', line 12 def self.describe(p = nil) "Runs a view with just the map function and returns the results" end |
Instance Method Details
#run(*params) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/couchup/commands/map.rb', line 4 def run(*params) rows = MapReduce.map(*params) puts "Found #{rows.size} item(s)" rows.each{|r| puts r.inspect} nil end |