Class: TimeEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



13
14
15
# File 'lib/harvest_overtime/structs.rb', line 13

def date
  @date
end

#hoursObject

Returns the value of attribute hours

Returns:

  • (Object)

    the current value of hours



13
14
15
# File 'lib/harvest_overtime/structs.rb', line 13

def hours
  @hours
end

Instance Method Details

#monthObject



14
15
16
# File 'lib/harvest_overtime/structs.rb', line 14

def month
  Month.new(date.year, date.month)
end