Class: Coligny::ColignyMonth
- Inherits:
-
Object
- Object
- Coligny::ColignyMonth
- Defined in:
- lib/coligny.rb
Overview
Adds ColignyMonth object, which has a name and number of days.
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
Populate these attributes when the instance of ColignyMonth is created.
Constructor Details
#initialize(name, days) ⇒ ColignyMonth
Populate these attributes when the instance of ColignyMonth is created.
15 16 17 18 |
# File 'lib/coligny.rb', line 15 def initialize(name, days) @name = name @days = days end |
Instance Attribute Details
#days ⇒ Object
Returns the value of attribute days.
12 13 14 |
# File 'lib/coligny.rb', line 12 def days @days end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/coligny.rb', line 11 def name @name end |