Class: DayOffs::DayOff

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countryObject

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



16
17
18
# File 'lib/day_offs.rb', line 16

def country
  @country
end

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



16
17
18
# File 'lib/day_offs.rb', line 16

def date
  @date
end

Instance Method Details

#==(other) ⇒ Object



17
18
19
# File 'lib/day_offs.rb', line 17

def ==(other)
  country == other.country && date == other.date
end