Google::Spreadsheet::Agent::DB - Base Net::Google::Spreadsheet object used by Agents and Runners
This is not meant to be used by itself. It is meant to be extended in other classes.
Scripts which use objects which extend Google::Spreadsheet::Agent::DB must supply the appropriate configuration for it to work. This can be done one of three ways.
This is the easiest way to configure a set of agents using the same configuration. See config/agent.conf.yml.tmpl for a template, with documentation, of what needs to be defined.
This causes the object to look for YAML file called 'agent.conf.yml' in a directory called 'config' in the same root directory as the directory containing the script using the Google::Spreadsheet::Agent::DB extending object, e.g. $FindBin.'/../config/agent.conf.yml'
You can define a HashRef with all of the key-value pairs defined in config/agent.conf.yml.tmpl and pass that to the constructor. This may be more useful where you want to use other serialization systems (e.g. JSON, XML, etc) to store configuration, which can be manipulated into a HashRef to be passed into the constructor.
This returns the actual Net::Google::Spreadsheet object used by the agent, in case other types of queries, or modifications need to be made that do not fit within this system.
<darin.london at duke.edu>
Please report any bugs or feature requests to
bug-google-spreadsheet-agent at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Google-Spreadsheet-Agent. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2009 Darin London.
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.