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