Method: Locations#update_location_template
- Defined in:
- lib/user/ecommerce/locations.rb
#update_location_template(id, data) ⇒ Object
Update location template.
Update a location template info.
Parameters
- id
-
(Integer) – Location template id.
- data
-
(Hash) – Data to be submitted.
Example
data = {
"title": "New Location Template Modified"
}
@data = @mints_user.update_location_template(3, data)
166 167 168 |
# File 'lib/user/ecommerce/locations.rb', line 166 def update_location_template(id, data) return @client.raw("put", "/ecommerce/location-templates/#{id}", nil, data_transform(data)) end |