Method: Orchestrate::EventType#take
- Defined in:
- lib/orchestrate/event_source.rb
#take(count) ⇒ Array
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.
134 135 136 |
# File 'lib/orchestrate/event_source.rb', line 134 def take(count) TimeSlice.new(self).take(count) end |