Module: Zakuro::Calculation::Summary::Japan::Single
- Defined in:
- lib/zakuro/calculation/summary/japan/single.rb
Overview
Single 一日
Class Method Summary collapse
Class Method Details
.get(context:, date: Japan::Calendar.new) ⇒ Result::Single
生成する
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/zakuro/calculation/summary/japan/single.rb', line 34 def get(context:, date: Japan::Calendar.new) years = get_full_range_years(context: context, date: date) data = get_data(context: context, years: years, date: date) western_date = data.day.western_date operation = get_operation(years: years, date: western_date) Result::Single.new( data: data, operation: operation ) end |