Class: HubLink::Stream
- Inherits:
-
Object
- Object
- HubLink::Stream
- Defined in:
- lib/hub_link/stream.rb
Instance Method Summary collapse
- #in_batches(&block) ⇒ Object
-
#initialize(repo, start_date: nil, batch_size: 7) ⇒ Stream
constructor
A new instance of Stream.
Constructor Details
#initialize(repo, start_date: nil, batch_size: 7) ⇒ Stream
Returns a new instance of Stream.
6 7 8 9 10 |
# File 'lib/hub_link/stream.rb', line 6 def initialize(repo, start_date: nil, batch_size: 7) @repo = repo @start_date = (start_date || date_of_first_pr).to_date @batch_size = batch_size end |