Module: Zakuro::Calculation::Summary::Western::Range
- Defined in:
- lib/zakuro/calculation/summary/western/range.rb
Overview
Range 期間
Class Method Summary collapse
-
.get(context:, start_date: Western::Calendar.new, last_date: Western::Calendar.new) ⇒ Result::Range
生成する.
Class Method Details
.get(context:, start_date: Western::Calendar.new, last_date: Western::Calendar.new) ⇒ Result::Range
生成する
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/zakuro/calculation/summary/western/range.rb', line 33 def get(context:, start_date: Western::Calendar.new, last_date: Western::Calendar.new) years = get_full_range_years( context: context, start_date: start_date, last_date: last_date ) operated_years = get_operation_range_years( context: context, years: years, start_date: start_date, last_date: last_date ) dates = Specifier::MultipleDay.get( context: context, years: years, start_date: start_date, last_date: last_date ) operated_dates = Specifier::MultipleDay.get( context: context, years: operated_years, start_date: start_date, last_date: last_date ) list = create_result_list(dates: dates, operated_dates: operated_dates) Result::Range.new(list: list) end |