Sha256: 67910920422a12bd12a87b080fd9a2d31f275ae106123cf1dd7d0d94dcedfbda

Contents?: true

Size: 398 Bytes

Versions: 12

Compression:

Stored size: 398 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Option < Resource
    path '/supplier/options'

    scope :dates, -> (params) { @endpoint[:dates].get(params).decoded }
    scope :active

    require_relative 'season'

    association :season, Supplier::Season

    attribute :time, type: :time
    attribute :total, type: :money
    attribute :currency, type: :currency
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tickethub-0.2.11 lib/tickethub/supplier/option.rb
tickethub-0.2.10 lib/tickethub/supplier/option.rb
tickethub-0.2.9 lib/tickethub/supplier/option.rb
tickethub-0.2.8 lib/tickethub/supplier/option.rb
tickethub-0.2.7 lib/tickethub/supplier/option.rb
tickethub-0.2.6 lib/tickethub/supplier/option.rb
tickethub-0.2.5 lib/tickethub/supplier/option.rb
tickethub-0.2.4 lib/tickethub/supplier/option.rb
tickethub-0.2.3 lib/tickethub/supplier/option.rb
tickethub-0.2.2 lib/tickethub/supplier/option.rb
tickethub-0.2.1 lib/tickethub/supplier/option.rb
tickethub-0.2.0 lib/tickethub/supplier/option.rb