Sha256: a45a769911eb32816bf680cec9bde2636f47597de022bee07045c662f1190efa

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 Bytes

Contents

require_relative 'resource'
require_relative 'option'
require_relative 'ticket'
require_relative 'order'

module TicketingHub
  class Venue < Resource

    def tickets date=nil, time=nil
      client.get "#{path}/#{id}/tickets", { date: date, time: time }, TicketingHub::Ticket
    end

    def orders
      client.get "#{path}/#{id}/orders", {}, TicketingHub::Order
    end

    def option(date, time)
      client.get("#{path}/#{id}/option", { date: date, time: time }, TicketingHub::Option).first
    end

    def seasons
      client.get "#{path}/#{id}/seasons"
    end

    def variations
      client.get "#{path}/#{id}/variations"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ticketinghub-1.1.1 lib/ticketing_hub/venue.rb
ticketinghub-1.1.0 lib/ticketing_hub/venue.rb