Class: DateCalculator
- Inherits:
-
Object
- Object
- DateCalculator
- Defined in:
- lib/gitlab_releases/date_calculator.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(next_version:, candidate_date:) ⇒ DateCalculator
constructor
the first day of the month.
Constructor Details
#initialize(next_version:, candidate_date:) ⇒ DateCalculator
the first day of the month.
9 10 11 12 |
# File 'lib/gitlab_releases/date_calculator.rb', line 9 def initialize(next_version:, candidate_date:) @next_version = next_version @candidate_date = candidate_date end |
Instance Method Details
#execute ⇒ Object
14 15 16 |
# File 'lib/gitlab_releases/date_calculator.rb', line 14 def execute calculate_third_thursday_of_month.strftime('%Y-%m-%d') end |