module Tickethub

Constants

ConnectionError
RequestError
VERSION

Public Class Methods

endpoint(options = {}) click to toggle source
# File lib/tickethub.rb, line 7
def self.endpoint(options = {})
  Endpoint.new @path || 'https://api.ticketinghub.com', options.merge(format: :json,
    headers: { 'Accept-Version' => 'v1', 'Accept' => 'application/json' })
end
endpoint=(path) click to toggle source
# File lib/tickethub.rb, line 3
def self.endpoint=(path)
  @path = path
end