Class: CodeReviewLeaderboard::Pulls
- Inherits:
-
Object
- Object
- CodeReviewLeaderboard::Pulls
- Defined in:
- lib/code_review_leaderboard/pulls.rb
Constant Summary collapse
- PER_PAGE =
100
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repository:, since:) ⇒ Pulls
constructor
A new instance of Pulls.
- #pulls ⇒ Object
Constructor Details
#initialize(repository:, since:) ⇒ Pulls
Returns a new instance of Pulls.
17 18 19 20 |
# File 'lib/code_review_leaderboard/pulls.rb', line 17 def initialize(repository:, since:) @repository = repository @since = since end |
Class Method Details
.for(repository:, since: 30.days.ago) ⇒ Object
12 13 14 |
# File 'lib/code_review_leaderboard/pulls.rb', line 12 def for(repository:, since: 30.days.ago) new(repository:, since:).pulls end |
Instance Method Details
#pulls ⇒ Object
22 23 24 |
# File 'lib/code_review_leaderboard/pulls.rb', line 22 def pulls fetch_pulls end |