Trello
POD
NAME
App::Tasks::Config::Trello - Trello Configuration for App::Tasks
SYNOPSIS
my $trello = App::Tasks::Config::Trello.new() $trello.process-config(%config) say "API Key: " ~ $trello.api-key;
DESCRIPTION
This handles the Trello API configuration for App::Tasks. Note that this
module is intended to be instantiated only via App::Tasks::Config.
FILE FORMAT
trello: api-key: "0123456789abcdef" token: "fedcba9876543210" tasks: board1: list1: "tag1"
This module will parse the trello section of the configuration YAML file.
The api-key and token are self-explanatory, while the boards section contains a hash of boards, which contain a hash of lists to consider as tasks. Each list has a tag that can be associated with it.
CLASS METHODS
process-config
my $trello = App::Tasks::Config::Trello.new(); $trello>process-config(%config);
This method takes a hash which represents the parsed YAML configuration file.
It will process the trello section of that configuration file.
ATTRIBUTES
api-key
The value, if set, of the API key used to connect to Trello.
token
The value, if set, of the token used to connect to Trello.
tasks
A hash of hashes, indicating boards with lists that have tasks. The top hash contains the boards, with the next level being the lists that are interesting in those boards. The final level is the tag to assign to tasks from that board.
base-url
The Trello base URL (normally "https://trello.com/"). This is primarily used for testing.
AUTHOR
Joelle Maslak <[email protected]>
LEGAL
Licensed under the same terms as Perl 6.
Copyright Β© 2018-2023 by Joelle Maslak