Sha256: 583141387c21aad190290a0b8afbbf61583287709a80548893d9dfd2b29fce01

Contents?: true

Size: 660 Bytes

Versions: 22

Compression:

Stored size: 660 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Reseller::Ticket < Resource
    path '/reseller/tickets'

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

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

    collection :scans, Reseller::Scan

    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

22 entries across 22 versions & 1 rubygems

Version Path
tickethub-0.3.58 lib/tickethub/reseller/ticket.rb
tickethub-0.3.57 lib/tickethub/reseller/ticket.rb
tickethub-0.3.56 lib/tickethub/reseller/ticket.rb
tickethub-0.3.55 lib/tickethub/reseller/ticket.rb
tickethub-0.3.54 lib/tickethub/reseller/ticket.rb
tickethub-0.3.53 lib/tickethub/reseller/ticket.rb
tickethub-0.3.52 lib/tickethub/reseller/ticket.rb
tickethub-0.3.51 lib/tickethub/reseller/ticket.rb
tickethub-0.3.50 lib/tickethub/reseller/ticket.rb
tickethub-0.3.49 lib/tickethub/reseller/ticket.rb
tickethub-0.3.47 lib/tickethub/reseller/ticket.rb
tickethub-0.3.46 lib/tickethub/reseller/ticket.rb
tickethub-0.3.45 lib/tickethub/reseller/ticket.rb
tickethub-0.3.44 lib/tickethub/reseller/ticket.rb
tickethub-0.3.43 lib/tickethub/reseller/ticket.rb
tickethub-0.3.42 lib/tickethub/reseller/ticket.rb
tickethub-0.3.41 lib/tickethub/reseller/ticket.rb
tickethub-0.3.40 lib/tickethub/reseller/ticket.rb
tickethub-0.3.39 lib/tickethub/reseller/ticket.rb
tickethub-0.3.38 lib/tickethub/reseller/ticket.rb