Sha256: 024bf282e3bcbb609109dbdf59386a1c39e61b9e1e8634efda55ab831d50fb24

Contents?: true

Size: 585 Bytes

Versions: 9

Compression:

Stored size: 585 Bytes

Contents

require_relative '../resource'

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

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

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

    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

9 entries across 9 versions & 1 rubygems

Version Path
tickethub-0.3.67 lib/tickethub/reseller/ticket.rb
tickethub-0.3.66 lib/tickethub/reseller/ticket.rb
tickethub-0.3.65 lib/tickethub/reseller/ticket.rb
tickethub-0.3.64 lib/tickethub/reseller/ticket.rb
tickethub-0.3.63 lib/tickethub/reseller/ticket.rb
tickethub-0.3.62 lib/tickethub/reseller/ticket.rb
tickethub-0.3.61 lib/tickethub/reseller/ticket.rb
tickethub-0.3.60 lib/tickethub/reseller/ticket.rb
tickethub-0.3.59 lib/tickethub/reseller/ticket.rb