module Uber::API::Products
Public Instance Methods
apply_availability(product_id, value)
click to toggle source
# File lib/uber/api/products.rb, line 23 def apply_availability(product_id, value) perform_with_object( :put, "/v1/sandbox/products/#{product_id}", { drivers_available: value }, Product ) end
apply_surge(product_id, surge_multiplier)
click to toggle source
# File lib/uber/api/products.rb, line 14 def apply_surge(product_id, surge_multiplier) perform_with_object( :put, "/v1/sandbox/products/#{product_id}", { surge_multiplier: surge_multiplier }, Product ) end
products(*args)
click to toggle source
# File lib/uber/api/products.rb, line 9 def products(*args) arguments = Uber::Arguments.new(args) perform_with_objects(:get, "/v1/products", arguments.options, Product) end