Sha256: d2463cbcc84455c24ee40a06cb07163f60ee8758cd767b1cf44dd53c505a672c

Contents?: true

Size: 534 Bytes

Versions: 20

Compression:

Stored size: 534 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Supplier::Customer < Resource
    path '/supplier/customers'

    require_relative 'booking'
    require_relative 'ticket'
    require_relative 'message'
    require_relative 'card'

    require_relative '../address'

    collection :cards, Supplier::Card
    collection :orders, Supplier::Booking
    collection :tickets, Supplier::Ticket
    collection :messages, Supplier::Message

    association :address, Tickethub::Address

    attribute :revenue, type: :money
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
tickethub-0.2.15 lib/tickethub/supplier/customer.rb
tickethub-0.2.14 lib/tickethub/supplier/customer.rb
tickethub-0.2.13 lib/tickethub/supplier/customer.rb
tickethub-0.2.12 lib/tickethub/supplier/customer.rb
tickethub-0.2.11 lib/tickethub/supplier/customer.rb
tickethub-0.2.10 lib/tickethub/supplier/customer.rb
tickethub-0.2.9 lib/tickethub/supplier/customer.rb
tickethub-0.2.8 lib/tickethub/supplier/customer.rb
tickethub-0.2.7 lib/tickethub/supplier/customer.rb
tickethub-0.2.6 lib/tickethub/supplier/customer.rb
tickethub-0.2.5 lib/tickethub/supplier/customer.rb
tickethub-0.2.4 lib/tickethub/supplier/customer.rb
tickethub-0.2.3 lib/tickethub/supplier/customer.rb
tickethub-0.2.2 lib/tickethub/supplier/customer.rb
tickethub-0.2.1 lib/tickethub/supplier/customer.rb
tickethub-0.2.0 lib/tickethub/supplier/customer.rb
tickethub-0.1.4 lib/tickethub/supplier/customer.rb
tickethub-0.1.3 lib/tickethub/supplier/customer.rb
tickethub-0.1.2 lib/tickethub/supplier/customer.rb
tickethub-0.0.14 lib/tickethub/supplier/customer.rb