Class: TimeEntries
- Inherits:
-
Object
- Object
- TimeEntries
- Defined in:
- lib/freshbookstimestats.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(project) ⇒ TimeEntries
constructor
A new instance of TimeEntries.
- #render ⇒ Object
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
#render ⇒ Object
81 82 83 |
# File 'lib/freshbookstimestats.rb', line 81 def render puts time_entries_table end |