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.100 lib/tickethub/channel/coupon.rb
tickethub-0.3.99 lib/tickethub/channel/coupon.rb
tickethub-0.3.98 lib/tickethub/channel/coupon.rb
tickethub-0.3.97 lib/tickethub/channel/coupon.rb
tickethub-0.3.96 lib/tickethub/channel/coupon.rb
tickethub-0.3.95 lib/tickethub/channel/coupon.rb
tickethub-0.3.94 lib/tickethub/channel/coupon.rb
tickethub-0.3.93 lib/tickethub/channel/coupon.rb
tickethub-0.3.92 lib/tickethub/channel/coupon.rb
tickethub-0.3.91 lib/tickethub/channel/coupon.rb
tickethub-0.3.90 lib/tickethub/channel/coupon.rb
tickethub-0.3.89 lib/tickethub/channel/coupon.rb
tickethub-0.3.88 lib/tickethub/channel/coupon.rb
tickethub-0.3.87 lib/tickethub/channel/coupon.rb
tickethub-0.3.86 lib/tickethub/channel/coupon.rb
tickethub-0.3.85 lib/tickethub/channel/coupon.rb
tickethub-0.3.84 lib/tickethub/channel/coupon.rb
tickethub-0.3.82 lib/tickethub/channel/coupon.rb
tickethub-0.3.81 lib/tickethub/channel/coupon.rb
tickethub-0.3.80 lib/tickethub/channel/coupon.rb