Sha256: ae6992520cd0689883e703568c46223972ad7c01f712bda20e04a5910bbdfab7

Contents?: true

Size: 287 Bytes

Versions: 35

Compression:

Stored size: 287 Bytes

Contents

require 'quick_travel/adapter'

module QuickTravel
  class ProductType < Adapter
    self.api_base = '/api/product_types'
    self.lookup = true

    def routes
      Route.all(id)
    end

    def resource_categories
      ResourceCategory.all(product_type_ids: [id])
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

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