Module: TicketMaster::Provider::Yoursystem

Includes:
Base
Defined in:
lib/ticketmaster/cli/commands/generate/provider/provider.rb,
lib/ticketmaster/cli/commands/generate/provider/ticket.rb,
lib/ticketmaster/cli/commands/generate/provider/comment.rb,
lib/ticketmaster/cli/commands/generate/provider/project.rb

Overview

This is the Yoursystem Provider for ticketmaster

Defined Under Namespace

Classes: Comment, Project, Ticket

Constant Summary

Constants included from Base

Base::PROJECT_API, Base::TICKET_API

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Base

#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(auth = {}) ⇒ Object

This is for cases when you want to instantiate using TicketMaster::Provider::Yoursystem.new(auth)


9
10
11
# File 'lib/ticketmaster/cli/commands/generate/provider/provider.rb', line 9

def self.new(auth = {})
  TicketMaster.new(:yoursystem, auth)
end

Instance Method Details

#authorize(auth = {}) ⇒ Object

Providers must define an authorize method. This is used to initialize and set authentication parameters to access the API


15
16
17
18
# File 'lib/ticketmaster/cli/commands/generate/provider/provider.rb', line 15

def authorize(auth = {})
  @authentication ||= TicketMaster::Authenticator.new(auth)
  # Set authentication parameters for whatever you're using to access the API
end