Sha256: f85ecb666f48a479fe4c45909a9de6e4d91507f22eb2547c0791969fe0b60e23

Contents?: true

Size: 276 Bytes

Versions: 50

Compression:

Stored size: 276 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Channel::Coupon < Resource
    path '/channel/coupons'

    require_relative 'booking'

    collection :bookings, Channel::Booking

    attribute :valid_from, type: :date
    attribute :expires_on, type: :date
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
tickethub-0.3.79 lib/tickethub/channel/coupon.rb
tickethub-0.3.78 lib/tickethub/channel/coupon.rb
tickethub-0.3.77 lib/tickethub/channel/coupon.rb
tickethub-0.3.76 lib/tickethub/channel/coupon.rb
tickethub-0.3.75 lib/tickethub/channel/coupon.rb
tickethub-0.3.74 lib/tickethub/channel/coupon.rb
tickethub-0.3.73 lib/tickethub/channel/coupon.rb
tickethub-0.3.72 lib/tickethub/channel/coupon.rb
tickethub-0.3.71 lib/tickethub/channel/coupon.rb
tickethub-0.3.70 lib/tickethub/channel/coupon.rb
tickethub-0.3.68 lib/tickethub/channel/coupon.rb
tickethub-0.3.67 lib/tickethub/channel/coupon.rb
tickethub-0.3.66 lib/tickethub/channel/coupon.rb
tickethub-0.3.65 lib/tickethub/channel/coupon.rb
tickethub-0.3.64 lib/tickethub/channel/coupon.rb
tickethub-0.3.63 lib/tickethub/channel/coupon.rb
tickethub-0.3.62 lib/tickethub/channel/coupon.rb
tickethub-0.3.61 lib/tickethub/channel/coupon.rb
tickethub-0.3.60 lib/tickethub/channel/coupon.rb
tickethub-0.3.59 lib/tickethub/channel/coupon.rb