class

Chronicle::Models::WorkSession

Inherits JSON::Serializable < Reference < Object

Represents a clustered block of contiguous focus and activity.

Constructors

new(start_time : Time, end_time : Time, primary_project : String, primary_app : String, duration_seconds : Float64, commit_count : Int32 = 0, command_count : Int32 = 0, window_count : Int32 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

command_count
Source
command_count=(command_count : Int32)
Source
commit_count
Source
commit_count=(commit_count : Int32)
Source
duration_hours
Source
duration_seconds
Source
duration_seconds=(duration_seconds : Float64)
Source
end_time
Source
end_time=(end_time : Time)
Source
primary_app
Source
primary_app=(primary_app : String)
Source
primary_project
Source
primary_project=(primary_project : String)
Source
start_time
Source
start_time=(start_time : Time)
Source
window_count
Source
window_count=(window_count : Int32)
Source