Sha256: 5d8607e9a131c7f693ca29873bb13606e9abfb1cb77927d7618737c1dbba514c

Contents?: true

Size: 327 Bytes

Versions: 46

Compression:

Stored size: 327 Bytes

Contents

require_relative '../booking'

module Tickethub
  class Supplier::Booking::Voucher < Supplier::Booking
    polymorphic 'voucher'

    require_relative '../voucher'
    require_relative '../tier'

    collection :tiers, Supplier::Tier
    collection :vouchers, Supplier::Voucher

    attribute :expires_on, type: :date
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
tickethub-0.3.16 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.15 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.14 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.13 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.12 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.11 lib/tickethub/supplier/booking/voucher.rb