class Brium::Worker

Included Modules

Defined in:

brium/worker.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def active : Bool #

[View source]
def active=(active : Bool) #

[View source]
def admin : Bool #

[View source]
def admin=(admin : Bool) #

[View source]
def email : String #

[View source]
def email=(email : String) #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def hours_per_day : Float64 #

[View source]
def hours_per_day=(hours_per_day : Float64) #

[View source]
def id : Int64 #

[View source]
def id=(id : Int64) #

[View source]
def name : String | Nil #

[View source]
def name=(name : String | Nil) #

[View source]