Method: Locations#update_location
- Defined in:
- lib/user/ecommerce/locations.rb
#update_location(id, data, options = nil) ⇒ Object
Update location.
Update a location info.
Parameters
- id
-
(Integer) – Location id.
- data
-
(Hash) – Data to be submitted.
Example
data = {
"title": "New Location Modified"
}
@data = @mints_user.update_location(5, data.to_json)
64 65 66 |
# File 'lib/user/ecommerce/locations.rb', line 64 def update_location(id, data, = nil) return @client.raw("put", "/ecommerce/locations/#{id}", , data) end |