Sha256: 2075c463a97939d600bb1955e150b67bfaae17184966ea335878e77040c211e6

Contents?: true

Size: 464 Bytes

Versions: 29

Compression:

Stored size: 464 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'
    require_relative 'user'

    association :season, Supplier::Season
    association :user, Supplier::User

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
tickethub-0.3.26 lib/tickethub/supplier/option.rb
tickethub-0.3.25 lib/tickethub/supplier/option.rb
tickethub-0.3.24 lib/tickethub/supplier/option.rb
tickethub-0.3.23 lib/tickethub/supplier/option.rb
tickethub-0.3.22 lib/tickethub/supplier/option.rb
tickethub-0.3.21 lib/tickethub/supplier/option.rb
tickethub-0.3.20 lib/tickethub/supplier/option.rb
tickethub-0.3.18 lib/tickethub/supplier/option.rb
tickethub-0.3.17 lib/tickethub/supplier/option.rb
tickethub-0.3.16 lib/tickethub/supplier/option.rb
tickethub-0.3.15 lib/tickethub/supplier/option.rb
tickethub-0.3.14 lib/tickethub/supplier/option.rb
tickethub-0.3.13 lib/tickethub/supplier/option.rb
tickethub-0.3.12 lib/tickethub/supplier/option.rb
tickethub-0.3.11 lib/tickethub/supplier/option.rb
tickethub-0.3.9 lib/tickethub/supplier/option.rb
tickethub-0.3.7 lib/tickethub/supplier/option.rb
tickethub-0.3.6 lib/tickethub/supplier/option.rb
tickethub-0.3.4 lib/tickethub/supplier/option.rb
tickethub-0.3.3 lib/tickethub/supplier/option.rb