Module: Zakuro::Calculation::Summary::Japan::Range
- Defined in:
- lib/zakuro/calculation/summary/japan/range.rb
Overview
Range 期間
Class Method Summary collapse
-
.get(context:, start_date: Japan::Calendar.new, last_date: Japan::Calendar.new) ⇒ Result::Range
生成する.
Class Method Details
.get(context:, start_date: Japan::Calendar.new, last_date: Japan::Calendar.new) ⇒ Result::Range
生成する
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/zakuro/calculation/summary/japan/range.rb', line 37 def get(context:, start_date: Japan::Calendar.new, last_date: Japan::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 ) range = specified_range( operated_years: operated_years, start_date: start_date, last_date: last_date ) list = create_list( context: context, range: range, operated_years: operated_years, years: years ) Result::Range.new(list: list) end |