class Event
Attributes
following_time_spent[RW]
string[RW]
time_recorded[RW]
Public Class Methods
new(string, following_time_spent = nil)
click to toggle source
# File lib/repo_timetracker/event.rb, line 4 def initialize(string, following_time_spent = nil) @string = string @time_recorded = Time.now @following_time_spent = following_time_spent || :working end
Public Instance Methods
==(other_event)
click to toggle source
# File lib/repo_timetracker/event.rb, line 14 def ==(other_event) @string == other_event.string and @time_recorded == other_event.time_recorded and @following_time_spent == other_event.following_time_spent end
following_time_spent_working?()
click to toggle source
# File lib/repo_timetracker/event.rb, line 10 def following_time_spent_working? following_time_spent == :working end