Class: CalendariumRomanum::Season

Inherits:
Object
  • Object
show all
Includes:
ValueObjectInterface
Defined in:
lib/calendarium-romanum/enums.rb

Instance Attribute Summary collapse

Attributes included from ValueObjectInterface

#symbol

Instance Method Summary collapse

Methods included from ValueObjectInterface

#name, #to_s

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

#colourObject (readonly)

Returns the value of attribute colour


46
47
48
# File 'lib/calendarium-romanum/enums.rb', line 46

def colour
  @colour
end