| Class | CouchPotato::View::ViewQuery |
| In: |
lib/couch_potato/view/view_query.rb
|
| Parent: | Object |
Used to query views (and create them if they don’t exist). Usually you won’t have to use this class directly. Instead it is used internally by the CouchPotato::Database.view method.
# File lib/couch_potato/view/view_query.rb, line 5
5: def initialize(couchrest_database, design_document_name, view_name, map_function, reduce_function = nil)
6: @database = couchrest_database
7: @design_document_name = design_document_name
8: @view_name = view_name
9: @map_function = map_function
10: @reduce_function = reduce_function
11: end