Sha256: 347391c271e918894f366f6facbab3881d9031771bce6f2c8102372ab96166d2

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Voucher < Resource
    path '/supplier/vouchers'

    require_relative 'tier'
    require_relative 'ticket'
    require_relative 'booking'

    association :tier, Supplier::Tier
    association :booking, Supplier::Booking

    collection :tickets, Supplier::Ticket

    attribute :created_at, type: :datetime
    attribute :updated_at, type: :datetime
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tickethub-0.0.6 lib/tickethub/supplier/voucher.rb
tickethub-0.0.5 lib/tickethub/supplier/voucher.rb
tickethub-0.0.4 lib/tickethub/supplier/voucher.rb