class

Shocking::History::Database

Inherits Reference < Object

Constructors

instance
Source
new(path : String = "")
Source

Instance methods

close
Source
daily_summary(days : Int32 = 7) : Array(NamedTuple(date: String, avg_percent: Float64, min_percent: Int32, max_percent: Int32))
Source
db=(db : DB::Database)
Source
log(status : Battery::Status)
Source
recent(minutes : Int32 = 60) : Array(BatteryRecord)
Source