Sha256: cfd0c4c92aae7ec2e128e4f0224239c30cefabe985bdb0a14bf7fcafe73801ad

Contents?: true

Size: 661 Bytes

Versions: 40

Compression:

Stored size: 661 Bytes

Contents

module QuickTravel
  class Resource
    def self.find(id)
      new(id: id)
    end

    def product_type
      QuickTravel::ProductType.new
    end
  end

  class ProductType
    def needs_passengers
      return true if @needs_passengers.nil?
      @needs_passengers
    end
  end

  class PassengerType
    def self.all
      [
        PassengerType.new(id: 1, name: 'Adult'),
        PassengerType.new(id: 2, name: 'Child')
      ]
    end
  end

  class Adapter
    def self.all
      [new, new]
    end
  end

  class PropertyType < Adapter
    def self.all
      [new, new]
    end
  end
  class Location < Adapter; end
  class Region < Adapter; end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
quicktravel_client-4.7.0 lib/quick_travel/mock.rb
quicktravel_client-4.6.0 lib/quick_travel/mock.rb
quicktravel_client-4.5.0 lib/quick_travel/mock.rb
quicktravel_client-4.4.0 lib/quick_travel/mock.rb
quicktravel_client-4.3.2 lib/quick_travel/mock.rb
quicktravel_client-4.3.1 lib/quick_travel/mock.rb
quicktravel_client-4.3.0 lib/quick_travel/mock.rb
quicktravel_client-4.2.0 lib/quick_travel/mock.rb
quicktravel_client-4.1.0 lib/quick_travel/mock.rb
quicktravel_client-4.0.0 lib/quick_travel/mock.rb
quicktravel_client-3.9.0 lib/quick_travel/mock.rb
quicktravel_client-3.8.1 lib/quick_travel/mock.rb
quicktravel_client-3.8.0 lib/quick_travel/mock.rb
quicktravel_client-1.1.2 lib/quick_travel/mock.rb
quicktravel_client-3.7.0 lib/quick_travel/mock.rb
quicktravel_client-3.6.1 lib/quick_travel/mock.rb
quicktravel_client-3.6.0 lib/quick_travel/mock.rb
quicktravel_client-3.5.0 lib/quick_travel/mock.rb
quicktravel_client-3.4.0 lib/quick_travel/mock.rb
quicktravel_client-3.3.0 lib/quick_travel/mock.rb