class

Chronicle::Models::ProjectActivity

Inherits JSON::Serializable < Reference < Object

Aggregated activity metrics correlated by project.

Constructors

new(project : String, total_focus_seconds : Float64 = 0.0, window_count : Int32 = 0, commands : Array(ShellEvent) = [] of ShellEvent, commits : Array(GitCommit) = [] of GitCommit, journals : Array(JournalEntry) = [] of JournalEntry, top_apps : Hash(String, Float64) = Hash(String, Float64).new(0.0))
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

commands
Source
commands=(commands : Array(ShellEvent))
Source
commits
Source
commits=(commits : Array(GitCommit))
Source
journals
Source
journals=(journals : Array(JournalEntry))
Source
project
Source
project=(project : String)
Source
top_apps
Source
top_apps=(top_apps : Hash(String, Float64))
Source
total_focus_seconds
Source
total_focus_seconds=(total_focus_seconds : Float64)
Source
window_count
Source
window_count=(window_count : Int32)
Source