Sha256: 113cc042ed84a4e766034b9be10d904f05154684fa7934ecb553e30a99eb381d

Contents?: true

Size: 455 Bytes

Versions: 66

Compression:

Stored size: 455 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Season < Resource
    path '/supplier/seasons'

    require_relative 'option'
    require_relative 'product'

    collection :options, Supplier::Option
    association :product, Supplier::Product

    attribute :starts_on, type: :date
    attribute :ends_on, type: :date

    def duplicate(params = {})
      self.class.call @endpoint, @endpoint[:duplicate].post(params)
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
tickethub-0.3.100 lib/tickethub/supplier/season.rb
tickethub-0.3.99 lib/tickethub/supplier/season.rb
tickethub-0.3.98 lib/tickethub/supplier/season.rb
tickethub-0.3.97 lib/tickethub/supplier/season.rb
tickethub-0.3.96 lib/tickethub/supplier/season.rb
tickethub-0.3.95 lib/tickethub/supplier/season.rb
tickethub-0.3.94 lib/tickethub/supplier/season.rb
tickethub-0.3.93 lib/tickethub/supplier/season.rb
tickethub-0.3.92 lib/tickethub/supplier/season.rb
tickethub-0.3.91 lib/tickethub/supplier/season.rb
tickethub-0.3.90 lib/tickethub/supplier/season.rb
tickethub-0.3.89 lib/tickethub/supplier/season.rb
tickethub-0.3.88 lib/tickethub/supplier/season.rb
tickethub-0.3.87 lib/tickethub/supplier/season.rb
tickethub-0.3.86 lib/tickethub/supplier/season.rb
tickethub-0.3.85 lib/tickethub/supplier/season.rb
tickethub-0.3.84 lib/tickethub/supplier/season.rb
tickethub-0.3.82 lib/tickethub/supplier/season.rb
tickethub-0.3.81 lib/tickethub/supplier/season.rb
tickethub-0.3.80 lib/tickethub/supplier/season.rb