Module: Uber::API::Products
- Included in:
- Uber::API
- Defined in:
- lib/uber/api/products.rb
Instance Method Summary collapse
- #apply_availability(product_id, value) ⇒ Object
- #apply_surge(product_id, surge_multiplier) ⇒ Object
- #products(*args) ⇒ Object
Instance Method Details
#apply_availability(product_id, value) ⇒ Object
17 18 19 |
# File 'lib/uber/api/products.rb', line 17 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) ⇒ Object
13 14 15 |
# File 'lib/uber/api/products.rb', line 13 def apply_surge(product_id, surge_multiplier) perform_with_object(:put, "/v1/sandbox/products/#{product_id}", {surge_multiplier: surge_multiplier}, Product) end |