Bb::Collaborate::Ultra::DAO is an abstract base class for various resource classes (e.g. Bb::Collaborate::Ultra::Session) and contains both builder and inherited methods from implementing these classes.
The following methods are inherited from this class.
Creates a new object.
Creates object on the server. E.g.
my $start = time() + 60; my $end = $start + 900; my $session = Bb::Collaborate::Ultra::Session->post($connection, { name => 'Test Session', startTime => $start, endTime => $end, }, );
Updates an existing object
$session->name('Test Session - Updated'); $session->endTime($session->endTime + 60); $session->patch; # enact updates
Fetches one or more objects from the server.
my @future_sessions = Bb::Collaborate::Ultra::Session->get($connection, {endTime => time(), limit => 50}, )
Deletes an object from the server
$session->delete;
Attempts a get on the object. If that fails, creates an new object on the server.
get
Computes a RESTful resource path for the object.
Returns any parent class for the object. May be used to compute the path.
Returns a list of fields that have been updated since the object was last saved via a `patch`, or `post`, or fetched via a `get`.
Returns the connection associated with the object. Will be set if the object has been fetched via a `get`, added via a `post` or updated via a `patch`.
__PACKAGE__->query_params( name => 'Str', extId => 'Str', );
This is used to specify any additional payload fields that may be passed as query parameters, or returned along with object data.
Serializes an object to JSON., with data conversion.
The reverse of `freeze`. Deserializes JSON data to objects, with conversion of dates, boolean values or nested objects.
Constructs a new object from server data.
Constructs the object class from JSON schema data
Copyright 2016 David Warring.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Bb::Collaborate::Ultra, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bb::Collaborate::Ultra
CPAN shell
perl -MCPAN -e shell install Bb::Collaborate::Ultra
For more information on module installation, please visit the detailed CPAN module installation guide.