Class: TimeEntries

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ TimeEntries

Returns a new instance of TimeEntries.



76
77
78
79
# File 'lib/freshbookstimestats.rb', line 76

def initialize(project)
  @project = project
  @total_hours = 0
end

Class Method Details

.render_project(project) ⇒ Object



72
73
74
# File 'lib/freshbookstimestats.rb', line 72

def self.render_project(project)
  new(project).render
end

Instance Method Details

#renderObject



81
82
83
# File 'lib/freshbookstimestats.rb', line 81

def render
  puts time_entries_table
end