Class: Zakuro::Western::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/zakuro/era/western/calendar.rb

Overview

Parameter 初期化引数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(year:, month:, day:, start:) ⇒ Parameter

初期化

Parameters:

  • year (Integer)

  • month (Integer)

  • day (Integer)

  • start (Integer)

    Ruby標準のグレゴリオ暦開始日



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

#dayInteger (readonly)

Returns 日.

Returns:

  • (Integer)



96
97
98
# File 'lib/zakuro/era/western/calendar.rb', line 96

def day
  @day
end

#monthInteger (readonly)

Returns 月.

Returns:

  • (Integer)



94
95
96
# File 'lib/zakuro/era/western/calendar.rb', line 94

def month
  @month
end

#startInteger (readonly)

Returns Ruby標準のグレゴリオ暦開始日.

Returns:

  • (Integer)

    Ruby標準のグレゴリオ暦開始日



98
99
100
# File 'lib/zakuro/era/western/calendar.rb', line 98

def start
  @start
end

#yearInteger (readonly)

Returns 年.

Returns:

  • (Integer)



92
93
94
# File 'lib/zakuro/era/western/calendar.rb', line 92

def year
  @year
end