30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/Cells/workbook.rb', line 30
def get_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.get(signed_uri, :accept => 'application/json')
json = JSON.parse(response)
if json['Code'] == 200
return json['DocumentProperty']
else
return false
end
rescue Exception=>e
print e
end
end
|