NAME
Gruntmaster::Data::Result::Contest - List of contests
TABLE: contests
ACCESSORS
id
data_type: 'text'
is_nullable: 0
name
data_type: 'text'
is_nullable: 0
start
data_type: 'integer'
is_nullable: 0
Unix time when contest starts
stop
data_type: 'integer'
is_nullable: 0
Unix time when contest ends
owner
data_type: 'text'
is_foreign_key: 1
is_nullable: 0
PRIMARY KEY
RELATIONS
contest_problems
Type: has_many
Related object: Gruntmaster::Data::Result::ContestProblem
contest_statuses
Type: has_many
Related object: Gruntmaster::Data::Result::ContestStatus
jobs
Type: has_many
Related object: Gruntmaster::Data::Result::Job
opens
Type: has_many
Related object: Gruntmaster::Data::Result::Open
owner
Type: belongs_to
Related object: Gruntmaster::Data::Result::User
problems
Type: many_to_many
Composing rels: "contest_problems" -> problem
METHODS
is_pending([$time])
Returns true if the contest is pending at time $time (which defaults to time
).
is_finished([$time])
Returns true if the contest is finished at time $time (which defaults to time
).
is_running([$time])
Returns true if the contest is running at time $time (which defaults to time
).
AUTHOR
Marius Gavrilescu <marius@ieval.ro>
COPYRIGHT AND LICENSE
Copyright (C) 2014 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.1 or, at your option, any later version of Perl 5 you may have available.