Sha256: 9cd83f5a0e3a8bb80c371a07de907d2b2095174d11764aa85dff4a7658a38a8b
Contents?: true
Size: 877 Bytes
Versions: 15
Compression:
Stored size: 877 Bytes
Contents
module TicketMaster::Provider # This is the Yoursystem Provider for ticketmaster module Yoursystem include TicketMaster::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 TicketMaster::Provider::Yoursystem.new(auth) def self.new(auth = {}) TicketMaster.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 ||= TicketMaster::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
15 entries across 15 versions & 1 rubygems