Sha256: d0fab6f6f540930aefec57cd1f235a479231f29a2ed1c2a43cd65928225a4573
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
module TaskMapper::Provider # This is the Yoursystem Provider for taskmapper module Yoursystem include TaskMapper::Provider::Base #TICKET_API = Yoursystem::Ticket # The class to access the api's tickets #PROJECT_API = Yoursystem::Project # The class to access the api's projects # This is for cases when you want to instantiate using TaskMapper::Provider::Yoursystem.new(auth) def self.new(auth = {}) TaskMapper.new(:yoursystem, auth) end # Providers must define an authorize method. This is used to initialize and set authentication # parameters to access the API def authorize(auth = {}) @authentication ||= TaskMapper::Authenticator.new(auth) # Set authentication parameters for whatever you're using to access the API end # declare needed overloaded methods here end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taskmapper-0.8.1 | lib/taskmapper/cli/commands/generate/provider/provider.rb |
taskmapper-0.8.0 | lib/taskmapper/cli/commands/generate/provider/provider.rb |