107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# File 'lib/Cells/workbook.rb', line 107
def remove_property property_name
begin
if @filename == ''
raise 'Base file name not specified.'
end
if property_name == ''
raise 'Property name is not specified.'
end
str_uri = $product_uri + '/cells/' + @filename + '/documentProperties/' + property_name
signed_uri = Aspose::Cloud::Common::Utils.sign(str_uri)
response = RestClient.delete(signed_uri, :accept => 'application/json')
json = JSON.parse(response)
if json['Code'] == 200
return true
else
return false
end
rescue Exception=>e
print e
end
end
|