Method: Springy::Results.fake
- Defined in:
- lib/springy/results.rb
.fake ⇒ Object
implements null object pattern
12 13 14 15 16 17 |
# File 'lib/springy/results.rb', line 12 def self.fake self.new( {size: API::DEFAULT_PER_PAGE, fake: true}, {'hits' => {'total' => 0, 'hits' => [], 'aggregations' => {}}} ) end |