Class: CalendariumRomanum::Season

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbol, colour) ⇒ Season

Returns a new instance of Season.


26
27
28
29
# File 'lib/calendarium-romanum/enums.rb', line 26

def initialize(symbol, colour)
  @symbol = symbol
  @colour = colour
end

Instance Attribute Details

#colourObject (readonly)

Returns the value of attribute colour


31
32
33
# File 'lib/calendarium-romanum/enums.rb', line 31

def colour
  @colour
end

#symbolObject (readonly) Also known as: to_sym

Returns the value of attribute symbol


31
32
33
# File 'lib/calendarium-romanum/enums.rb', line 31

def symbol
  @symbol
end