Sha256: 5e00c99ac83c8adb81e0be124b3e513952785f38a32ba5f70dfd0cb2102034e8

Contents?: true

Size: 406 Bytes

Versions: 16

Compression:

Stored size: 406 Bytes

Contents

require_relative '../resource'

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

    scope :dates, -> (params) { @endpoint[:dates, params: params].get.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

16 entries across 16 versions & 1 rubygems

Version Path
tickethub-0.1.4 lib/tickethub/supplier/option.rb
tickethub-0.1.3 lib/tickethub/supplier/option.rb
tickethub-0.1.2 lib/tickethub/supplier/option.rb
tickethub-0.0.14 lib/tickethub/supplier/option.rb
tickethub-0.0.12 lib/tickethub/supplier/option.rb
tickethub-0.0.11 lib/tickethub/supplier/option.rb
tickethub-0.0.10 lib/tickethub/supplier/option.rb
tickethub-0.0.9 lib/tickethub/supplier/option.rb
tickethub-0.0.8 lib/tickethub/supplier/option.rb
tickethub-0.0.7 lib/tickethub/supplier/option.rb
tickethub-0.0.6 lib/tickethub/supplier/option.rb
tickethub-0.0.5 lib/tickethub/supplier/option.rb
tickethub-0.0.4 lib/tickethub/supplier/option.rb
tickethub-0.0.3 lib/tickethub/supplier/option.rb
tickethub-0.0.2 lib/tickethub/supplier/option.rb
tickethub-0.0.1 lib/tickethub/supplier/option.rb