Module: TaskMapper::Provider::Dummy

Includes:
Base
Defined in:
lib/taskmapper/dummy/dummy.rb,
lib/taskmapper/dummy/ticket.rb,
lib/taskmapper/dummy/comment.rb,
lib/taskmapper/dummy/project.rb

Overview

This is the Dummy 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::Dummy.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

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::Dummy.new(…) rather than TaskMapper.new(:dummy, …)



19
20
21
22
# File 'lib/taskmapper/dummy/dummy.rb', line 19

def self.new(authentication = {})
  TaskMapper.new(:dummy, authentication)
  # maybe do some other stuff
end