class Brium::Worker
- Brium::Worker
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
brium/worker.crConstructors
- .new(id : Int, email : String, name : Nil | String = nil, hours_per_day : Float64 = 8.0, active : Bool = true, admin : Bool = false)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #active : Bool
- #active=(active : Bool)
- #admin : Bool
- #admin=(admin : Bool)
- #email : String
- #email=(email : String)
-
#hash(hasher)
See
Object#hash(hasher)
- #hours_per_day : Float64
- #hours_per_day=(hours_per_day : Float64)
- #id : Int64
- #id=(id : Int64)
- #name : String | Nil
- #name=(name : String | Nil)
Constructor Detail
def self.new(id : Int, email : String, name : Nil | String = nil, hours_per_day : Float64 = 8.0, active : Bool = true, admin : Bool = false)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.