Module: Uber::API::Places
- Included in:
- Uber::API
- Defined in:
- lib/uber/api/places.rb
Instance Method Summary collapse
- #place(place_id) ⇒ Object (also: #place_detail)
- #place_update(place_id, address) ⇒ Object
Instance Method Details
#place(place_id) ⇒ Object Also known as: place_detail
8 9 10 |
# File 'lib/uber/api/places.rb', line 8 def place(place_id) perform_with_object(:get, "/v1/places/#{place_id}", {}, Place) end |
#place_update(place_id, address) ⇒ Object
12 13 14 |
# File 'lib/uber/api/places.rb', line 12 def place_update(place_id, address) perform_with_object(:put, "/v1/places/#{place_id}", {address: address}, Place) end |