Class: Freshtrack::TimeCollector::OneInchPunch

Inherits:
Object
  • Object
show all
Includes:
PunchyTemplate
Defined in:
lib/freshtrack/time_collectors/one_inch_punch.rb

Instance Attribute Summary

Attributes included from PunchyTemplate

#options

Instance Method Summary collapse

Methods included from PunchyTemplate

#condense_time_data, #group_date_data, #initialize, #times_to_dates

Instance Method Details

#get_time_data(project) ⇒ Object



9
10
11
12
13
# File 'lib/freshtrack/time_collectors/one_inch_punch.rb', line 9

def get_time_data(project)
  ::Punch.load
  time_data = ::Punch.list(project, options)
  condense_time_data(time_data)
end