Sha256: 94fb3b4cd962e3522442a77e098ad4499cc95acf7f887850f62d3ac8477b26cc

Contents?: true

Size: 720 Bytes

Versions: 1

Compression:

Stored size: 720 Bytes

Contents

module TicketMaster::Provider
  # This is the Yoursystem Provider for ticketmaster
  module Yoursystem
    include TicketMaster::Provider::Base
    
    # 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

1 entries across 1 versions & 1 rubygems

Version Path
ticketmaster-0.4.6 lib/ticketmaster/cli/commands/generate/provider/provider.rb