Module: TicketMaster::Provider::Tester

Includes:
Base
Defined in:
lib/ticketmaster/tester/tester.rb,
lib/ticketmaster/tester/ticket.rb,
lib/ticketmaster/tester/comment.rb,
lib/ticketmaster/tester/project.rb

Overview

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.

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 TicketMaster::Provider::Tester.new(…) rather than TicketMaster.new(:tester, …)



19
20
21
22
# File 'lib/ticketmaster/tester/tester.rb', line 19

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