Module: WingedCouch::Queries::ViewResultProcessor::MapViewProcessor

Defined in:
lib/winged_couch/queries/view_result_processor.rb

Class Method Summary collapse

Class Method Details

.process(raw_result, model) ⇒ Object


6
7
8
9
10
# File 'lib/winged_couch/queries/view_result_processor.rb', line 6

def self.process(raw_result, model)
  raw_result["rows"].map do |row|
    model.new(row["value"])
  end
end