Class: Coligny::ColignyMonth
- Inherits:
-
Object
- Object
- Coligny::ColignyMonth
- Defined in:
- lib/coligny.rb
Instance Attribute Summary collapse
-
#days ⇒ Object
Returns the value of attribute days.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, days) ⇒ ColignyMonth
constructor
A new instance of ColignyMonth.
Constructor Details
#initialize(name, days) ⇒ ColignyMonth
Returns a new instance of ColignyMonth.
13 14 15 16 |
# File 'lib/coligny.rb', line 13 def initialize(name, days) @name = name @days = days end |
Instance Attribute Details
#days ⇒ Object
Returns the value of attribute days.
11 12 13 |
# File 'lib/coligny.rb', line 11 def days @days end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/coligny.rb', line 10 def name @name end |