Class: Freshtrack::TimeCollector::Punch
- Inherits:
-
Object
- Object
- Freshtrack::TimeCollector::Punch
show all
- Includes:
- PunchyTemplate
- Defined in:
- lib/freshtrack/time_collectors/punch.rb
Instance Attribute Summary
#options
Instance Method Summary
collapse
#condense_time_data, #group_date_data, #initialize, #times_to_dates
Instance Method Details
#convert_time_data(time_data) ⇒ Object
14
15
16
|
# File 'lib/freshtrack/time_collectors/punch.rb', line 14
def convert_time_data(time_data)
YAML.load(time_data)
end
|
#get_time_data(project) ⇒ Object
8
9
10
11
12
|
# File 'lib/freshtrack/time_collectors/punch.rb', line 8
def get_time_data(project)
time_data = IO.read("| punch list #{project} #{option_str}")
converted = convert_time_data(time_data)
condense_time_data(converted)
end
|