Sha256: 2d342953529eee7ac9010759f7d9d053fb773e030bc9d1a08385ee89550504a0

Contents?: true

Size: 514 Bytes

Versions: 40

Compression:

Stored size: 514 Bytes

Contents

require_relative '../resource'

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

    require_relative 'booking'
    require_relative 'tier'

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

    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.79 lib/tickethub/channel/ticket.rb
tickethub-0.3.78 lib/tickethub/channel/ticket.rb
tickethub-0.3.77 lib/tickethub/channel/ticket.rb
tickethub-0.3.76 lib/tickethub/channel/ticket.rb
tickethub-0.3.75 lib/tickethub/channel/ticket.rb
tickethub-0.3.74 lib/tickethub/channel/ticket.rb
tickethub-0.3.73 lib/tickethub/channel/ticket.rb
tickethub-0.3.72 lib/tickethub/channel/ticket.rb
tickethub-0.3.71 lib/tickethub/channel/ticket.rb
tickethub-0.3.70 lib/tickethub/channel/ticket.rb
tickethub-0.3.68 lib/tickethub/channel/ticket.rb
tickethub-0.3.67 lib/tickethub/channel/ticket.rb
tickethub-0.3.66 lib/tickethub/channel/ticket.rb
tickethub-0.3.65 lib/tickethub/channel/ticket.rb
tickethub-0.3.64 lib/tickethub/channel/ticket.rb
tickethub-0.3.63 lib/tickethub/channel/ticket.rb
tickethub-0.3.62 lib/tickethub/channel/ticket.rb
tickethub-0.3.61 lib/tickethub/channel/ticket.rb
tickethub-0.3.60 lib/tickethub/channel/ticket.rb
tickethub-0.3.59 lib/tickethub/channel/ticket.rb