Module: TicketMaster::Provider::Dummy
- Includes:
- Base
- Defined in:
- lib/ticketmaster/dummy/dummy.rb,
lib/ticketmaster/dummy/ticket.rb,
lib/ticketmaster/dummy/comment.rb,
lib/ticketmaster/dummy/project.rb
Overview
This is the Dummy 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::Dummy.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
-
.new(authentication = {}) ⇒ Object
An example of what to do if you would like to do TicketMaster::Provider::Dummy.new(…) rather than TicketMaster.new(:dummy, …).
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::Dummy.new(…) rather than TicketMaster.new(:dummy, …)
19 20 21 22 |
# File 'lib/ticketmaster/dummy/dummy.rb', line 19 def self.new(authentication = {}) TicketMaster.new(:dummy, authentication) # maybe do some other stuff end |