Class: Nextday::Holiday
- Inherits:
-
Object
- Object
- Nextday::Holiday
- Defined in:
- lib/nextday/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, date) ⇒ Holiday
constructor
A new instance of Holiday.
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
#date ⇒ Object (readonly)
Returns the value of attribute date.
4 5 6 |
# File 'lib/nextday/holiday.rb', line 4 def date @date end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/nextday/holiday.rb', line 4 def name @name end |