Sha256: 7810de3906d7eac90bc81e2fde7e13a2ec51caf25f2787196c3942931916cdfc

Contents?: true

Size: 588 Bytes

Versions: 10

Compression:

Stored size: 588 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Channel::Ticket < Resource
    path '/channel/tickets'

    require_relative 'booking'
    require_relative 'tier'
    require_relative 'voucher'

    association :booking, Channel::Booking
    association :tier, Channel::Tier
    association :voucher, Channel::Voucher

    attribute :price, type: :money
    attribute :interval, type: :duration

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tickethub-0.3.58 lib/tickethub/channel/ticket.rb
tickethub-0.3.57 lib/tickethub/channel/ticket.rb
tickethub-0.3.55 lib/tickethub/channel/ticket.rb
tickethub-0.3.54 lib/tickethub/channel/ticket.rb
tickethub-0.3.53 lib/tickethub/channel/ticket.rb
tickethub-0.3.52 lib/tickethub/channel/ticket.rb
tickethub-0.3.51 lib/tickethub/channel/ticket.rb
tickethub-0.3.50 lib/tickethub/channel/ticket.rb
tickethub-0.3.49 lib/tickethub/channel/ticket.rb
tickethub-0.3.47 lib/tickethub/channel/ticket.rb