Sha256: 6441f4d7b72ecbef90fb07d8743baa1d9269b0882ae30a988c376b1a4caf7a3c

Contents?: true

Size: 580 Bytes

Versions: 13

Compression:

Stored size: 580 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 'ticket'
    require_relative 'season'
    require_relative 'user'

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

    collection :tickets, Supplier::Ticket

    attribute :date_time, type: :datetime

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tickethub-0.3.40 lib/tickethub/supplier/option.rb
tickethub-0.3.39 lib/tickethub/supplier/option.rb
tickethub-0.3.38 lib/tickethub/supplier/option.rb
tickethub-0.3.37 lib/tickethub/supplier/option.rb
tickethub-0.3.36 lib/tickethub/supplier/option.rb
tickethub-0.3.35 lib/tickethub/supplier/option.rb
tickethub-0.3.34 lib/tickethub/supplier/option.rb
tickethub-0.3.33 lib/tickethub/supplier/option.rb
tickethub-0.3.32 lib/tickethub/supplier/option.rb
tickethub-0.3.31 lib/tickethub/supplier/option.rb
tickethub-0.3.30 lib/tickethub/supplier/option.rb
tickethub-0.3.29 lib/tickethub/supplier/option.rb
tickethub-0.3.28 lib/tickethub/supplier/option.rb