App::Dochazka::REST::Model::Schedintvls - object class for "scratch schedules"
use App::Dochazka::REST::Model::Schedintvls; ...
Populate the schedintvls object (called automatically by 'reset' method which is, in turn, called automatically by 'spawn')
Instance method. Once the scratch intervals are inserted, we have a fully populated object. This method runs each scratch interval through the stored procedure 'translate_schedintvl' -- upon success, it creates a new attribute, $self->{schedule}, containing the translated intervals.
$self->{schedule}
Instance method. Attempts to INSERT one or more records (one for each interval in the 'intvls' attribute) into the 'schedintvls' table. Field values are taken from the object. Returns a status object.
There is no update method for schedintvls. Instead, delete and re-create.
Instance method. Once we are done with the scratch intervals, they can be deleted. Returns a status object.
Instance method. Returns a JSON string representation of the schedule.
Get next value from the scratch_sid_seq sequence
Nathan Cutler, <presnypreklad@gmail.com>
<presnypreklad@gmail.com>
To install App::Dochazka::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dochazka::REST
CPAN shell
perl -MCPAN -e shell install App::Dochazka::REST
For more information on module installation, please visit the detailed CPAN module installation guide.