Class: HolidaysFromGoogleCalendar::Holiday
- Inherits:
-
Object
- Object
- HolidaysFromGoogleCalendar::Holiday
- Defined in:
- lib/holidays_from_google_calendar/holiday.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name: nil, date: nil) ⇒ Holiday
constructor
A new instance of Holiday.
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
#date ⇒ Object (readonly)
Returns the value of attribute date.
3 4 5 |
# File 'lib/holidays_from_google_calendar/holiday.rb', line 3 def date @date end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/holidays_from_google_calendar/holiday.rb', line 3 def name @name end |