services/named-maps-api-wrapper/lib/named-maps-wrapper/named_map.rb
# Update a named map's template data (full replace update)
Update a named map's template data (full replace update)
Update a named map ' s template data ( full replace update )
def update( visualization )
        @template = NamedMap.get_template_data( visualization, @parent )
				response = Typhoeus.put( url + '?api_key=' + @parent.api_key, {
					headers: @parent.headers,
					body: ::JSON.dump( @template ),
          ssl_verifypeer: @parent.verify_cert,
          ssl_verifyhost: @parent.verify_host,
          followlocation: true
				} )
        raise HTTPResponseError, "#{response.code} #{response.request.url} (PUT)" unless response.code == 200
        @template
			end
def update ( visualization ) @template = NamedMap . get_template_data ( visualization , @parent ) response = Typhoeus . put ( url + '?api_key=' + @parent . api_key , { headers : @parent . headers , body : :: JSON . dump ( @template ) , ssl_verifypeer : @parent . verify_cert , ssl_verifyhost : @parent . verify_host , followlocation : true } ) raise HTTPResponseError , "#{response.code} #{response.request.url} (PUT)" unless response . code == 200 @template end
Update a named map's template data (full replace update)
Update a named map ' s template data ( full replace update )
visualization