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-3.2.0 lib/quick_travel/mock.rb
quicktravel_client-3.1.0 lib/quick_travel/mock.rb
quicktravel_client-3.0.0 lib/quick_travel/mock.rb
quicktravel_client-2.9.0 lib/quick_travel/mock.rb
quicktravel_client-2.8.0 lib/quick_travel/mock.rb
quicktravel_client-2.7.0 lib/quick_travel/mock.rb
quicktravel_client-2.6.0 lib/quick_travel/mock.rb
quicktravel_client-2.5.0 lib/quick_travel/mock.rb
quicktravel_client-2.4.1 lib/quick_travel/mock.rb
quicktravel_client-2.4.0 lib/quick_travel/mock.rb
quicktravel_client-2.3.1 lib/quick_travel/mock.rb
quicktravel_client-2.3.0 lib/quick_travel/mock.rb
quicktravel_client-2.2.2 lib/quick_travel/mock.rb
quicktravel_client-2.2.1 lib/quick_travel/mock.rb
quicktravel_client-2.2.0 lib/quick_travel/mock.rb
quicktravel_client-2.1.0 lib/quick_travel/mock.rb
quicktravel_client-2.0.0 lib/quick_travel/mock.rb
quicktravel_client-1.1.1 lib/quick_travel/mock.rb
quicktravel_client-1.1.0 lib/quick_travel/mock.rb
quicktravel_client-1.0.2 lib/quick_travel/mock.rb