Class: Conquiro::SearchAPI::ResultCollection
- Inherits:
-
Object
- Object
- Conquiro::SearchAPI::ResultCollection
- Defined in:
- lib/conquiro/search_api/result_collection.rb
Class Method Summary collapse
Class Method Details
.from_json(json_payload) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/conquiro/search_api/result_collection.rb', line 6 def self.from_json(json_payload) raise 'No results to serialize.' unless json_payload json_payload.map { |attributes| Conquiro::SearchAPI::ResultSerializer.serializer_for(attributes).serialize } end |