Class: HolidaysFromGoogleCalendar::Holiday

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, date: nil) ⇒ Holiday

Returns a new instance of Holiday.



5
6
7
8
# File 'lib/holidays_from_google_calendar/holiday.rb', line 5

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

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



3
4
5
# File 'lib/holidays_from_google_calendar/holiday.rb', line 3

def date
  @date
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/holidays_from_google_calendar/holiday.rb', line 3

def name
  @name
end