Sha256: 22034f4ed1a1c041682f5abeb41f88cdb8116e4665fb5466a72d6c1555da9ff2

Contents?: true

Size: 600 Bytes

Versions: 40

Compression:

Stored size: 600 Bytes

Contents

require 'date'
require_relative '../resource'

module Tickethub
  class Supplier::Ticket < Resource
    path '/supplier/tickets'

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

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

    collection :scans, Supplier::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

40 entries across 40 versions & 1 rubygems

Version Path
tickethub-0.3.100 lib/tickethub/supplier/ticket.rb
tickethub-0.3.99 lib/tickethub/supplier/ticket.rb
tickethub-0.3.98 lib/tickethub/supplier/ticket.rb
tickethub-0.3.97 lib/tickethub/supplier/ticket.rb
tickethub-0.3.96 lib/tickethub/supplier/ticket.rb
tickethub-0.3.95 lib/tickethub/supplier/ticket.rb
tickethub-0.3.94 lib/tickethub/supplier/ticket.rb
tickethub-0.3.93 lib/tickethub/supplier/ticket.rb
tickethub-0.3.92 lib/tickethub/supplier/ticket.rb
tickethub-0.3.91 lib/tickethub/supplier/ticket.rb
tickethub-0.3.90 lib/tickethub/supplier/ticket.rb
tickethub-0.3.89 lib/tickethub/supplier/ticket.rb
tickethub-0.3.88 lib/tickethub/supplier/ticket.rb
tickethub-0.3.87 lib/tickethub/supplier/ticket.rb
tickethub-0.3.86 lib/tickethub/supplier/ticket.rb
tickethub-0.3.85 lib/tickethub/supplier/ticket.rb
tickethub-0.3.84 lib/tickethub/supplier/ticket.rb
tickethub-0.3.82 lib/tickethub/supplier/ticket.rb
tickethub-0.3.81 lib/tickethub/supplier/ticket.rb
tickethub-0.3.80 lib/tickethub/supplier/ticket.rb