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.77 lib/tickethub/supplier/season.rb
tickethub-0.3.76 lib/tickethub/supplier/season.rb
tickethub-0.3.75 lib/tickethub/supplier/season.rb
tickethub-0.3.74 lib/tickethub/supplier/season.rb
tickethub-0.3.73 lib/tickethub/supplier/season.rb
tickethub-0.3.72 lib/tickethub/supplier/season.rb
tickethub-0.3.71 lib/tickethub/supplier/season.rb
tickethub-0.3.70 lib/tickethub/supplier/season.rb
tickethub-0.3.68 lib/tickethub/supplier/season.rb
tickethub-0.3.67 lib/tickethub/supplier/season.rb
tickethub-0.3.66 lib/tickethub/supplier/season.rb
tickethub-0.3.65 lib/tickethub/supplier/season.rb
tickethub-0.3.64 lib/tickethub/supplier/season.rb
tickethub-0.3.63 lib/tickethub/supplier/season.rb
tickethub-0.3.62 lib/tickethub/supplier/season.rb
tickethub-0.3.61 lib/tickethub/supplier/season.rb
tickethub-0.3.60 lib/tickethub/supplier/season.rb
tickethub-0.3.59 lib/tickethub/supplier/season.rb
tickethub-0.3.58 lib/tickethub/supplier/season.rb
tickethub-0.3.57 lib/tickethub/supplier/season.rb