class Brium::Holiday
- Brium::Holiday
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
brium/holiday.crConstructors
- .new(pull : JSON::PullParser)
- .new(id : Int, worker_id = nil, kind : String = "vacations", from : Time = Time.local, to : Time = Time.local, description : Nil | String = nil)
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #description : String | Nil
- #description=(description : String | Nil)
- #from : Time
- #from=(from : Time)
-
#hash(hasher)
See
Object#hash(hasher)
- #id : Int64
- #id=(id : Int64)
- #kind : String
- #kind=(kind : String)
- #to : Time
- #to=(to : Time)
- #worker_id : Int64 | Nil
- #worker_id=(worker_id : Int64 | Nil)
Constructor Detail
def self.new(id : Int, worker_id = nil, kind : String = "vacations", from : Time = Time.local, to : Time = Time.local, description : Nil | String = nil)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.