Module: TaskMapper::Provider::Tester
- Includes:
- Base
- Defined in:
- lib/taskmapper/tester/tester.rb,
lib/taskmapper/tester/ticket.rb,
lib/taskmapper/tester/comment.rb,
lib/taskmapper/tester/project.rb
Overview
This is the Tester Provider
It doesn’t really do anything, it exists in order to test the basic functionality of taskmapper and to provide an example the basics of what is to be expected from the providers.
Note that the initial provider name is a module rather than a class. TaskMapper.new extends on an instance-based fashion. If you would rather initialize using code that is closer to:
TaskMapper::Provider::Tester.new(authentication)
You will have to do a little magic trick and define new on the provider as a wrapper around the TaskMapper.new call.
Defined Under Namespace
Classes: Comment, Project, Ticket
Constant Summary
Constants included from Base
Base::PROJECT_API, Base::TICKET_API
Class Method Summary collapse
-
.new(authentication = {}) ⇒ Object
An example of what to do if you would like to do TaskMapper::Provider::Tester.new(…) rather than TaskMapper.new(:tester, …).
Methods included from Base
#authorize, #project, #project!, #projects, #ticket, #tickets, #valid?
Methods included from Helper
#easy_finder, #filter_string, #provider_parent, #search_by_attribute, #search_filter, #this_method
Class Method Details
.new(authentication = {}) ⇒ Object
An example of what to do if you would like to do TaskMapper::Provider::Tester.new(…) rather than TaskMapper.new(:tester, …)
19 20 21 22 |
# File 'lib/taskmapper/tester/tester.rb', line 19 def self.new(authentication = {}) TaskMapper.new(:tester, authentication) # maybe do some other stuff end |