struct

Shocking::Battery::Status

Inherits Struct < Value < Object

Constructors

new(percent : Int32 = 0, state : String = "Unknown", health : String = "Unknown", rate_mw : Int64 = 0, voltage_uv : Int64 = 0, time_remaining : String = "N/A")
Source

Instance methods

health
Source
health=(health : String)
Source
percent
Source
percent=(percent : Int32)
Source
rate_mw
Source
rate_mw=(rate_mw : Int64)
Source
state
Source
state=(state : String)
Source
time_remaining
Source
time_remaining=(time_remaining : String)
Source
voltage_uv
Source
voltage_uv=(voltage_uv : Int64)
Source