Method: Aspose::Cloud::Cells::Workbook#get_properties

Defined in:
lib/Cells/workbook.rb

#get_propertiesObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/Cells/workbook.rb', line 9

def get_properties
  begin
    if @filename == ''
      raise 'Base file name not specified.'
    end
    str_uri = $product_uri + '/cells/' + @filename + '/documentProperties'
    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['DocumentProperties']['DocumentPropertyList']
    else
      return false
    end

  rescue Exception=>e
    print e
  end
      
end