Class: Coligny::ColignyMonth

Inherits:
Object
  • Object
show all
Defined in:
lib/coligny.rb

Overview

Adds ColignyMonth object, which has a name and number of days.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#daysObject

Returns the value of attribute days.



12
13
14
# File 'lib/coligny.rb', line 12

def days
  @days
end

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/coligny.rb', line 11

def name
  @name
end