Class: CalendariumRomanum::Season
- Inherits:
-
Object
- Object
- CalendariumRomanum::Season
- Includes:
- ValueObjectInterface
- Defined in:
- lib/calendarium-romanum/enums.rb
Instance Attribute Summary collapse
-
#colour ⇒ Object
readonly
Returns the value of attribute colour.
Attributes included from ValueObjectInterface
Instance Method Summary collapse
-
#initialize(symbol, colour) ⇒ Season
constructor
A new instance of Season.
Methods included from ValueObjectInterface
Constructor Details
#initialize(symbol, colour) ⇒ Season
Returns a new instance of Season.
40 41 42 43 44 |
# File 'lib/calendarium-romanum/enums.rb', line 40 def initialize(symbol, colour) @symbol = symbol @colour = colour @i18n_key = "temporale.season.#{@symbol}" end |
Instance Attribute Details
#colour ⇒ Object (readonly)
Returns the value of attribute colour.
46 47 48 |
# File 'lib/calendarium-romanum/enums.rb', line 46 def colour @colour end |