Class: DailyImage::Solar
- Inherits:
-
Object
- Object
- DailyImage::Solar
- Defined in:
- lib/daily_image/lunar_solar_converter.rb
Instance Attribute Summary collapse
-
#solar_day ⇒ Object
Returns the value of attribute solar_day.
-
#solar_month ⇒ Object
Returns the value of attribute solar_month.
-
#solar_year ⇒ Object
Returns the value of attribute solar_year.
Instance Method Summary collapse
-
#initialize(y = 0, m = 0, d = 0) ⇒ Solar
constructor
A new instance of Solar.
Constructor Details
#initialize(y = 0, m = 0, d = 0) ⇒ Solar
Returns a new instance of Solar.
18 19 20 21 22 |
# File 'lib/daily_image/lunar_solar_converter.rb', line 18 def initialize(y = 0, m = 0, d = 0) @solar_year = y @solar_month = m @solar_day = d end |
Instance Attribute Details
#solar_day ⇒ Object
Returns the value of attribute solar_day.
16 17 18 |
# File 'lib/daily_image/lunar_solar_converter.rb', line 16 def solar_day @solar_day end |
#solar_month ⇒ Object
Returns the value of attribute solar_month.
16 17 18 |
# File 'lib/daily_image/lunar_solar_converter.rb', line 16 def solar_month @solar_month end |
#solar_year ⇒ Object
Returns the value of attribute solar_year.
16 17 18 |
# File 'lib/daily_image/lunar_solar_converter.rb', line 16 def solar_year @solar_year end |