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