Module: Tickethub

Defined in:
lib/tickethub.rb,
lib/tickethub/app.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/reseller.rb,
lib/tickethub/resource.rb,
lib/tickethub/response.rb,
lib/tickethub/supplier.rb,
lib/tickethub/user/app.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/app/category.rb,
lib/tickethub/channel/tier.rb,
lib/tickethub/reseller/fee.rb,
lib/tickethub/reseller/tax.rb,
lib/tickethub/supplier/app.rb,
lib/tickethub/supplier/fee.rb,
lib/tickethub/supplier/tax.rb,
lib/tickethub/channel/extra.rb,
lib/tickethub/channel/order.rb,
lib/tickethub/reseller/scan.rb,
lib/tickethub/reseller/tier.rb,
lib/tickethub/reseller/user.rb,
lib/tickethub/supplier/rate.rb,
lib/tickethub/supplier/scan.rb,
lib/tickethub/supplier/tier.rb,
lib/tickethub/supplier/user.rb,
lib/tickethub/user/reseller.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/reseller/extra.rb,
lib/tickethub/reseller/order.rb,
lib/tickethub/supplier/extra.rb,
lib/tickethub/supplier/order.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/channel/voucher.rb,
lib/tickethub/reseller/answer.rb,
lib/tickethub/reseller/option.rb,
lib/tickethub/reseller/refund.rb,
lib/tickethub/reseller/source.rb,
lib/tickethub/reseller/ticket.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/supplier/widget.rb,
lib/tickethub/app/subscription.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/reseller/booking.rb,
lib/tickethub/reseller/channel.rb,
lib/tickethub/reseller/invoice.rb,
lib/tickethub/reseller/payment.rb,
lib/tickethub/reseller/product.rb,
lib/tickethub/reseller/variant.rb,
lib/tickethub/reseller/voucher.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/partner.rb,
lib/tickethub/supplier/payment.rb,
lib/tickethub/supplier/product.rb,
lib/tickethub/supplier/session.rb,
lib/tickethub/supplier/variant.rb,
lib/tickethub/supplier/voucher.rb,
lib/tickethub/reseller/customer.rb,
lib/tickethub/reseller/discount.rb,
lib/tickethub/reseller/purchase.rb,
lib/tickethub/reseller/question.rb,
lib/tickethub/reseller/supplier.rb,
lib/tickethub/supplier/customer.rb,
lib/tickethub/supplier/discount.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/reseller/source/card.rb,
lib/tickethub/supplier/message/sms.rb,
lib/tickethub/supplier/source/card.rb,
lib/tickethub/supplier/payment/cash.rb,
lib/tickethub/supplier/subscription.rb,
lib/tickethub/channel/booking/ticket.rb,
lib/tickethub/channel/payment/paypal.rb,
lib/tickethub/channel/payment/stripe.rb,
lib/tickethub/reseller/source/alipay.rb,
lib/tickethub/supplier/message/email.rb,
lib/tickethub/supplier/source/alipay.rb,
lib/tickethub/channel/booking/voucher.rb,
lib/tickethub/reseller/booking/ticket.rb,
lib/tickethub/reseller/payment/credit.rb,
lib/tickethub/reseller/payment/stripe.rb,
lib/tickethub/reseller/source/bitcoin.rb,
lib/tickethub/supplier/booking/ticket.rb,
lib/tickethub/supplier/charge/gateway.rb,
lib/tickethub/supplier/charge/service.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/reseller/booking/voucher.rb,
lib/tickethub/supplier/booking/voucher.rb,
lib/tickethub/supplier/payment/handpoint.rb,
lib/tickethub/supplier/payment/complimentary.rb

Defined Under Namespace

Modules: Formats, Helpers Classes: Address, App, BadRequest, Channel, ClientError, Collection, Connection, ConnectionError, Contact, Endpoint, Errors, ForbiddenAccess, MethodNotAllowed, Redirection, Request, Reseller, Resource, ResourceInvalid, ResourceNotFound, Response, SSLError, ServerError, Supplier, TimeoutError, Token, UnauthorizedAccess, User

Constant Summary collapse

VERSION =
'0.3.50'

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.tickethub.io', 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