Class: Zakuro::Western::Parameter
- Inherits:
-
Object
- Object
- Zakuro::Western::Parameter
- Defined in:
- lib/zakuro/era/western/calendar.rb
Overview
Parameter 初期化引数
Instance Attribute Summary collapse
-
#day ⇒ Integer
readonly
日.
-
#month ⇒ Integer
readonly
月.
-
#start ⇒ Integer
readonly
Ruby標準のグレゴリオ暦開始日.
-
#year ⇒ Integer
readonly
年.
Instance Method Summary collapse
-
#initialize(year:, month:, day:, start:) ⇒ Parameter
constructor
初期化.
Constructor Details
#initialize(year:, month:, day:, start:) ⇒ Parameter
初期化
108 109 110 111 112 113 |
# File 'lib/zakuro/era/western/calendar.rb', line 108 def initialize(year:, month:, day:, start:) @year = year @month = month @day = day @start = start end |
Instance Attribute Details
#day ⇒ Integer (readonly)
Returns 日.
96 97 98 |
# File 'lib/zakuro/era/western/calendar.rb', line 96 def day @day end |
#month ⇒ Integer (readonly)
Returns 月.
94 95 96 |
# File 'lib/zakuro/era/western/calendar.rb', line 94 def month @month end |
#start ⇒ Integer (readonly)
Returns Ruby標準のグレゴリオ暦開始日.
98 99 100 |
# File 'lib/zakuro/era/western/calendar.rb', line 98 def start @start end |
#year ⇒ Integer (readonly)
Returns 年.
92 93 94 |
# File 'lib/zakuro/era/western/calendar.rb', line 92 def year @year end |