Method: Aspose::Cloud::Cells::Workbook#get_name_count
- Defined in:
- lib/Cells/workbook.rb
#get_name_count ⇒ Object
210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/Cells/workbook.rb', line 210 def get_name_count begin if @filename == '' raise 'Base file name not specified' end str_uri = $product_uri + '/cells/' + @filename + '/names' signed_uri = Aspose::Cloud::Common::Utils.sign(str_uri) response = RestClient.get(signed_uri, :accept => 'application/json') json = JSON.parse(response) return json['Names'].count rescue Exception=>e print e end end |