Module: Tickethub

Defined in:
lib/tickethub.rb,
lib/tickethub/user.rb,
lib/tickethub/token.rb,
lib/tickethub/errors.rb,
lib/tickethub/address.rb,
lib/tickethub/channel.rb,
lib/tickethub/contact.rb,
lib/tickethub/formats.rb,
lib/tickethub/helpers.rb,
lib/tickethub/request.rb,
lib/tickethub/version.rb,
lib/tickethub/endpoint.rb,
lib/tickethub/resource.rb,
lib/tickethub/response.rb,
lib/tickethub/supplier.rb,
lib/tickethub/aggregate.rb,
lib/tickethub/collection.rb,
lib/tickethub/connection.rb,
lib/tickethub/exceptions.rb,
lib/tickethub/channel/fee.rb,
lib/tickethub/channel/tax.rb,
lib/tickethub/channel/tier.rb,
lib/tickethub/supplier/fee.rb,
lib/tickethub/supplier/tax.rb,
lib/tickethub/channel/extra.rb,
lib/tickethub/channel/order.rb,
lib/tickethub/supplier/rate.rb,
lib/tickethub/supplier/scan.rb,
lib/tickethub/supplier/tier.rb,
lib/tickethub/supplier/user.rb,
lib/tickethub/user/supplier.rb,
lib/tickethub/channel/answer.rb,
lib/tickethub/channel/coupon.rb,
lib/tickethub/channel/option.rb,
lib/tickethub/channel/refund.rb,
lib/tickethub/channel/ticket.rb,
lib/tickethub/supplier/extra.rb,
lib/tickethub/supplier/order.rb,
lib/tickethub/supplier/party.rb,
lib/tickethub/supplier/shift.rb,
lib/tickethub/channel/booking.rb,
lib/tickethub/channel/payment.rb,
lib/tickethub/channel/product.rb,
lib/tickethub/channel/session.rb,
lib/tickethub/channel/variant.rb,
lib/tickethub/supplier/answer.rb,
lib/tickethub/supplier/charge.rb,
lib/tickethub/supplier/coupon.rb,
lib/tickethub/supplier/import.rb,
lib/tickethub/supplier/option.rb,
lib/tickethub/supplier/refund.rb,
lib/tickethub/supplier/season.rb,
lib/tickethub/supplier/source.rb,
lib/tickethub/supplier/ticket.rb,
lib/tickethub/channel/customer.rb,
lib/tickethub/channel/discount.rb,
lib/tickethub/channel/purchase.rb,
lib/tickethub/channel/question.rb,
lib/tickethub/channel/supplier.rb,
lib/tickethub/response/headers.rb,
lib/tickethub/supplier/booking.rb,
lib/tickethub/supplier/channel.rb,
lib/tickethub/supplier/dispute.rb,
lib/tickethub/supplier/invoice.rb,
lib/tickethub/supplier/message.rb,
lib/tickethub/supplier/payment.rb,
lib/tickethub/supplier/product.rb,
lib/tickethub/supplier/session.rb,
lib/tickethub/supplier/variant.rb,
lib/tickethub/supplier/weather.rb,
lib/tickethub/supplier/customer.rb,
lib/tickethub/supplier/discount.rb,
lib/tickethub/supplier/location.rb,
lib/tickethub/supplier/override.rb,
lib/tickethub/supplier/purchase.rb,
lib/tickethub/supplier/question.rb,
lib/tickethub/supplier/reseller.rb,
lib/tickethub/supplier/transfer.rb,
lib/tickethub/supplier/broadcast.rb,
lib/tickethub/formats/form_format.rb,
lib/tickethub/formats/json_format.rb,
lib/tickethub/supplier/adjustment.rb,
lib/tickethub/supplier/message/sms.rb,
lib/tickethub/supplier/source/card.rb,
lib/tickethub/supplier/payment/cash.rb,
lib/tickethub/channel/payment/paypal.rb,
lib/tickethub/channel/payment/stripe.rb,
lib/tickethub/supplier/message/email.rb,
lib/tickethub/supplier/source/alipay.rb,
lib/tickethub/supplier/payment/credit.rb,
lib/tickethub/supplier/payment/direct.rb,
lib/tickethub/supplier/payment/paypal.rb,
lib/tickethub/supplier/payment/stripe.rb,
lib/tickethub/supplier/source/bitcoin.rb,
lib/tickethub/supplier/payment/external.rb,
lib/tickethub/supplier/payment/spreedly.rb,
lib/tickethub/supplier/payment/handpoint.rb

Defined Under Namespace

Modules: Formats, Helpers Classes: Address, Aggregate, BadRequest, Channel, ClientError, Collection, Connection, Contact, Endpoint, ErrnoError, Error, Errors, ForbiddenAccess, MethodNotAllowed, Redirection, RedirectionLoop, Request, Resource, ResourceConflict, ResourceGone, ResourceInvalid, ResourceNotFound, Response, ResponseError, SSLError, ServerError, Supplier, TimeoutError, Token, UnauthorizedAccess, User, ZlibError

Constant Summary collapse

VERSION =
'0.3.98'
ConnectionError =
Error
RequestError =
Error

Class Method Summary collapse

Class Method Details

.endpoint(options = {}) ⇒ Object



7
8
9
10
# 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) ⇒ Object



3
4
5
# File 'lib/tickethub.rb', line 3

def self.endpoint=(path)
  @path = path
end