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.56 lib/tickethub/supplier/season.rb
tickethub-0.3.55 lib/tickethub/supplier/season.rb
tickethub-0.3.54 lib/tickethub/supplier/season.rb
tickethub-0.3.53 lib/tickethub/supplier/season.rb
tickethub-0.3.52 lib/tickethub/supplier/season.rb
tickethub-0.3.51 lib/tickethub/supplier/season.rb
tickethub-0.3.50 lib/tickethub/supplier/season.rb
tickethub-0.3.49 lib/tickethub/supplier/season.rb
tickethub-0.3.47 lib/tickethub/supplier/season.rb
tickethub-0.3.46 lib/tickethub/supplier/season.rb
tickethub-0.3.45 lib/tickethub/supplier/season.rb
tickethub-0.3.44 lib/tickethub/supplier/season.rb
tickethub-0.3.43 lib/tickethub/supplier/season.rb
tickethub-0.3.42 lib/tickethub/supplier/season.rb
tickethub-0.3.41 lib/tickethub/supplier/season.rb
tickethub-0.3.40 lib/tickethub/supplier/season.rb
tickethub-0.3.39 lib/tickethub/supplier/season.rb
tickethub-0.3.38 lib/tickethub/supplier/season.rb
tickethub-0.3.37 lib/tickethub/supplier/season.rb
tickethub-0.3.36 lib/tickethub/supplier/season.rb