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.37 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.36 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.35 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.34 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.33 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.32 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.31 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.30 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.29 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.28 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.27 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.26 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.25 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.24 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.23 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.22 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.21 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.20 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.18 lib/tickethub/supplier/booking/voucher.rb
tickethub-0.3.17 lib/tickethub/supplier/booking/voucher.rb