Class: Nextday::Holiday

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, date) ⇒ Holiday

Returns a new instance of Holiday.



6
7
8
9
# File 'lib/nextday/holiday.rb', line 6

def initialize(name, date)
  @name = name
  @date = date
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



4
5
6
# File 'lib/nextday/holiday.rb', line 4

def date
  @date
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/nextday/holiday.rb', line 4

def name
  @name
end