Method: Orchestrate::Collection#take
- Defined in:
- lib/orchestrate/collection.rb
#take(count) ⇒ Array<KeyValue>
Returns the first n items. Equivalent to Enumerable#take. Sets the
limit parameter on the query to Orchestrate, so we don't ask for more than is needed.
234 235 236 |
# File 'lib/orchestrate/collection.rb', line 234 def take(count) KeyValueList.new(self).take(count) end |