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.58 lib/tickethub/channel/coupon.rb
tickethub-0.3.57 lib/tickethub/channel/coupon.rb
tickethub-0.3.55 lib/tickethub/channel/coupon.rb
tickethub-0.3.54 lib/tickethub/channel/coupon.rb
tickethub-0.3.53 lib/tickethub/channel/coupon.rb
tickethub-0.3.52 lib/tickethub/channel/coupon.rb
tickethub-0.3.51 lib/tickethub/channel/coupon.rb
tickethub-0.3.50 lib/tickethub/channel/coupon.rb
tickethub-0.3.49 lib/tickethub/channel/coupon.rb
tickethub-0.3.47 lib/tickethub/channel/coupon.rb