Sha256: f49c68e78e487413bc1d2dd09483c772ecb8719064dc34636fc56167aec83a2f

Contents?: true

Size: 661 Bytes

Versions: 87

Compression:

Stored size: 661 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Customer < Resource
    path '/supplier/customers'

    require_relative 'booking'
    require_relative 'ticket'
    require_relative 'message'
    require_relative 'source'
    require_relative 'broadcast'

    require_relative '../address'

    collection_method :broadcast do |params|
      Tickethub::Broadcast.call self.endpoint, post(:broadcast, params)
    end

    collection :orders, Supplier::Booking
    collection :tickets, Supplier::Ticket
    collection :sources, Supplier::Source
    collection :messages, Supplier::Message

    association :address, Tickethub::Address
  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
tickethub-0.3.100 lib/tickethub/supplier/customer.rb
tickethub-0.3.99 lib/tickethub/supplier/customer.rb
tickethub-0.3.98 lib/tickethub/supplier/customer.rb
tickethub-0.3.97 lib/tickethub/supplier/customer.rb
tickethub-0.3.96 lib/tickethub/supplier/customer.rb
tickethub-0.3.95 lib/tickethub/supplier/customer.rb
tickethub-0.3.94 lib/tickethub/supplier/customer.rb
tickethub-0.3.93 lib/tickethub/supplier/customer.rb
tickethub-0.3.92 lib/tickethub/supplier/customer.rb
tickethub-0.3.91 lib/tickethub/supplier/customer.rb
tickethub-0.3.90 lib/tickethub/supplier/customer.rb
tickethub-0.3.89 lib/tickethub/supplier/customer.rb
tickethub-0.3.88 lib/tickethub/supplier/customer.rb
tickethub-0.3.87 lib/tickethub/supplier/customer.rb
tickethub-0.3.86 lib/tickethub/supplier/customer.rb
tickethub-0.3.85 lib/tickethub/supplier/customer.rb
tickethub-0.3.84 lib/tickethub/supplier/customer.rb
tickethub-0.3.82 lib/tickethub/supplier/customer.rb
tickethub-0.3.81 lib/tickethub/supplier/customer.rb
tickethub-0.3.80 lib/tickethub/supplier/customer.rb