Sha256: 28f7782da8047d40bdb8bf56952871a7d99ff6b9426b2972e380f61e19c1d2bc

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

Stored size: 1.06 KB

Contents

module TicketMaster::Provider
  # This is the Tester Provider
  #
  # It doesn't really do anything, it exists in order to test the basic functionality of ticketmaster
  # 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. TicketMaster.new
  # extends on an instance-based fashion. If you would rather initialize using code that is 
  # closer to:
  # 
  #    TicketMaster::Provider::Tester.new(authentication)
  #
  # You will have to do a little magic trick and define new on the provider as a wrapper
  # around the TicketMaster.new call.
  module Tester
    include TicketMaster::Provider::Base
    # An example of what to do if you would like to do TicketMaster::Provider::Tester.new(...)
    # rather than TicketMaster.new(:tester, ...)
    def self.new(authentication = {})
      TicketMaster.new(:tester, authentication)
      # maybe do some other stuff
    end
  end
end

%w| project ticket comment |.each do |f|
  require File.dirname(__FILE__) + '/' + f +'.rb'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ticketmaster-0.7.0 lib/ticketmaster/tester/tester.rb
ticketmaster-0.6.10 lib/ticketmaster/tester/tester.rb
ticketmaster-0.6.9 lib/ticketmaster/tester/tester.rb
ticketmaster-0.6.8 lib/ticketmaster/tester/tester.rb
ticketmaster-0.6.7 lib/ticketmaster/tester/tester.rb
ticketmaster-0.6.6 lib/ticketmaster/tester/tester.rb
ticketmaster-0.5.6 lib/ticketmaster/tester/tester.rb
ticketmaster-0.5.5 lib/ticketmaster/tester/tester.rb
ticketmaster-0.5.3 lib/ticketmaster/tester/tester.rb