cloudmersive-convert-api-client 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{client/Gemfile → Gemfile} +0 -0
- data/{client/README.md → README.md} +49 -4
- data/{client/Rakefile → Rakefile} +0 -0
- data/{client/cloudmersive-convert-api-client.gemspec → cloudmersive-convert-api-client.gemspec} +0 -0
- data/{client/docs → docs}/CompareDocumentApi.md +0 -0
- data/{client/docs → docs}/ConvertDataApi.md +0 -0
- data/{client/docs → docs}/ConvertDocumentApi.md +0 -0
- data/{client/docs → docs}/ConvertImageApi.md +113 -0
- data/{client/docs → docs}/ConvertTemplateApi.md +0 -0
- data/{client/docs → docs}/ConvertWebApi.md +0 -0
- data/{client/docs → docs}/ConvertedPngPage.md +0 -0
- data/{client/docs → docs}/DocumentValidationError.md +0 -0
- data/{client/docs → docs}/DocumentValidationResult.md +0 -0
- data/docs/DocxBody.md +10 -0
- data/docs/DocxCellStyle.md +11 -0
- data/{client/docs → docs}/DocxFooter.md +1 -0
- data/{client/docs → docs}/DocxHeader.md +1 -0
- data/docs/DocxImage.md +20 -0
- data/docs/DocxInsertImageRequest.md +14 -0
- data/{client/docs → docs}/DocxInsertImageResponse.md +0 -0
- data/{client/docs → docs}/DocxParagraph.md +1 -0
- data/docs/DocxRemoveObjectRequest.md +10 -0
- data/docs/DocxRemoveObjectResponse.md +9 -0
- data/{client/docs → docs}/DocxRun.md +1 -0
- data/{client/docs → docs}/DocxSection.md +1 -0
- data/{client/docs → docs}/DocxSetFooterRequest.md +0 -0
- data/{client/docs → docs}/DocxSetFooterResponse.md +0 -0
- data/{client/docs → docs}/DocxSetHeaderRequest.md +0 -0
- data/{client/docs → docs}/DocxSetHeaderResponse.md +0 -0
- data/{client/docs → docs}/DocxStyle.md +1 -0
- data/{client/docs → docs}/DocxTable.md +2 -1
- data/{client/docs → docs}/DocxTableCell.md +1 -0
- data/{client/docs → docs}/DocxTableRow.md +1 -0
- data/{client/docs → docs}/DocxText.md +1 -0
- data/{client/docs → docs}/EditDocumentApi.md +605 -0
- data/docs/ExifValue.md +10 -0
- data/{client/docs → docs}/FinishEditingRequest.md +0 -0
- data/docs/GetDocxBodyRequest.md +9 -0
- data/docs/GetDocxBodyResponse.md +9 -0
- data/{client/docs → docs}/GetDocxHeadersAndFootersRequest.md +0 -0
- data/{client/docs → docs}/GetDocxHeadersAndFootersResponse.md +0 -0
- data/docs/GetDocxImagesRequest.md +9 -0
- data/docs/GetDocxImagesResponse.md +9 -0
- data/docs/GetDocxSectionsRequest.md +9 -0
- data/docs/GetDocxSectionsResponse.md +9 -0
- data/{client/docs → docs}/GetDocxStylesRequest.md +0 -0
- data/{client/docs → docs}/GetDocxStylesResponse.md +0 -0
- data/{client/docs → docs}/GetDocxTablesRequest.md +0 -0
- data/{client/docs → docs}/GetDocxTablesResponse.md +0 -0
- data/docs/GetImageInfoResult.md +24 -0
- data/docs/GetXlsxColumnsRequest.md +10 -0
- data/docs/GetXlsxColumnsResponse.md +9 -0
- data/docs/GetXlsxImagesRequest.md +10 -0
- data/docs/GetXlsxImagesResponse.md +9 -0
- data/docs/GetXlsxRowsAndCellsRequest.md +10 -0
- data/docs/GetXlsxRowsAndCellsResponse.md +9 -0
- data/docs/GetXlsxStylesRequest.md +9 -0
- data/docs/GetXlsxStylesResponse.md +9 -0
- data/docs/GetXlsxWorksheetsRequest.md +9 -0
- data/docs/GetXlsxWorksheetsResponse.md +9 -0
- data/{client/docs → docs}/HtmlMdResult.md +0 -0
- data/{client/docs → docs}/HtmlTemplateApplicationRequest.md +0 -0
- data/{client/docs → docs}/HtmlTemplateApplicationResponse.md +0 -0
- data/{client/docs → docs}/HtmlTemplateOperation.md +0 -0
- data/{client/docs → docs}/HtmlToOfficeRequest.md +0 -0
- data/{client/docs → docs}/HtmlToPdfRequest.md +0 -0
- data/docs/InsertDocxInsertParagraphRequest.md +12 -0
- data/docs/InsertDocxInsertParagraphResponse.md +9 -0
- data/docs/InsertDocxTablesRequest.md +12 -0
- data/{client/docs → docs}/InsertDocxTablesResponse.md +0 -0
- data/docs/InsertXlsxWorksheetRequest.md +10 -0
- data/docs/InsertXlsxWorksheetResponse.md +9 -0
- data/{client/docs → docs}/MergeDocumentApi.md +0 -0
- data/{client/docs → docs}/PdfToPngResult.md +0 -0
- data/{client/docs → docs}/RemoveDocxHeadersAndFootersRequest.md +0 -0
- data/{client/docs → docs}/RemoveDocxHeadersAndFootersResponse.md +0 -0
- data/{client/docs → docs}/ReplaceStringRequest.md +0 -0
- data/{client/docs → docs}/ScreenshotRequest.md +0 -0
- data/{client/docs → docs}/ValidateDocumentApi.md +0 -0
- data/{client/docs → docs}/ViewerResponse.md +0 -0
- data/{client/docs → docs}/ViewerToolsApi.md +0 -0
- data/docs/XlsxImage.md +12 -0
- data/docs/XlsxSpreadsheetCell.md +12 -0
- data/docs/XlsxSpreadsheetColumn.md +9 -0
- data/docs/XlsxSpreadsheetRow.md +9 -0
- data/docs/XlsxWorksheet.md +9 -0
- data/{client/git_push.sh → git_push.sh} +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client.rb +32 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/compare_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_data_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_image_api.rb +118 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_template_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_web_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/edit_document_api.rb +605 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/merge_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/validate_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/viewer_tools_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api_client.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api_error.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/configuration.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/converted_png_page.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_error.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_result.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/docx_body.rb +213 -0
- data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +219 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_footer.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_header.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_image.rb +309 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +27 -17
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_paragraph.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_run.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_section.rb +14 -4
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_style.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table.rb +12 -2
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_cell.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_row.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_text.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/exif_value.rb +206 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/finish_editing_request.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +201 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +350 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +201 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_md_result.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_operation.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_office_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +245 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +245 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +0 -0
- data/{client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb → lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb} +10 -10
- data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/replace_string_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/screenshot_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/viewer_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +229 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +228 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/version.rb +1 -1
- data/{client/spec → spec}/api/compare_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_data_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_image_api_spec.rb +25 -0
- data/{client/spec → spec}/api/convert_template_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_web_api_spec.rb +0 -0
- data/{client/spec → spec}/api/edit_document_api_spec.rb +132 -0
- data/{client/spec → spec}/api/merge_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/validate_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/viewer_tools_api_spec.rb +0 -0
- data/{client/spec → spec}/api_client_spec.rb +0 -0
- data/{client/spec → spec}/configuration_spec.rb +0 -0
- data/{client/spec → spec}/models/converted_png_page_spec.rb +0 -0
- data/{client/spec → spec}/models/document_validation_error_spec.rb +0 -0
- data/{client/spec → spec}/models/document_validation_result_spec.rb +0 -0
- data/spec/models/docx_body_spec.rb +54 -0
- data/spec/models/docx_cell_style_spec.rb +60 -0
- data/{client/spec → spec}/models/docx_footer_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_header_spec.rb +6 -0
- data/spec/models/docx_image_spec.rb +114 -0
- data/{client/spec → spec}/models/docx_insert_image_request_spec.rb +8 -2
- data/{client/spec → spec}/models/docx_insert_image_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_paragraph_spec.rb +6 -0
- data/spec/models/docx_remove_object_request_spec.rb +54 -0
- data/spec/models/docx_remove_object_response_spec.rb +48 -0
- data/{client/spec → spec}/models/docx_run_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_section_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_set_footer_request_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_footer_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_header_request_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_header_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_style_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_cell_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_row_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_text_spec.rb +6 -0
- data/spec/models/exif_value_spec.rb +54 -0
- data/{client/spec → spec}/models/finish_editing_request_spec.rb +0 -0
- data/spec/models/get_docx_body_request_spec.rb +48 -0
- data/spec/models/get_docx_body_response_spec.rb +48 -0
- data/{client/spec → spec}/models/get_docx_headers_and_footers_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_headers_and_footers_response_spec.rb +0 -0
- data/spec/models/get_docx_images_request_spec.rb +48 -0
- data/spec/models/get_docx_images_response_spec.rb +48 -0
- data/spec/models/get_docx_sections_request_spec.rb +48 -0
- data/spec/models/get_docx_sections_response_spec.rb +48 -0
- data/{client/spec → spec}/models/get_docx_styles_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_styles_response_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_tables_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_tables_response_spec.rb +0 -0
- data/spec/models/get_image_info_result_spec.rb +138 -0
- data/spec/models/get_xlsx_columns_request_spec.rb +54 -0
- data/spec/models/get_xlsx_columns_response_spec.rb +48 -0
- data/spec/models/get_xlsx_images_request_spec.rb +54 -0
- data/spec/models/get_xlsx_images_response_spec.rb +48 -0
- data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +54 -0
- data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +48 -0
- data/spec/models/get_xlsx_styles_request_spec.rb +48 -0
- data/spec/models/get_xlsx_styles_response_spec.rb +48 -0
- data/spec/models/get_xlsx_worksheets_request_spec.rb +48 -0
- data/spec/models/get_xlsx_worksheets_response_spec.rb +48 -0
- data/{client/spec → spec}/models/html_md_result_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_application_request_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_application_response_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_operation_spec.rb +0 -0
- data/{client/spec → spec}/models/html_to_office_request_spec.rb +0 -0
- data/{client/spec → spec}/models/html_to_pdf_request_spec.rb +0 -0
- data/spec/models/insert_docx_insert_paragraph_request_spec.rb +66 -0
- data/spec/models/insert_docx_insert_paragraph_response_spec.rb +48 -0
- data/{client/spec → spec}/models/insert_docx_tables_request_spec.rb +12 -0
- data/{client/spec → spec}/models/insert_docx_tables_response_spec.rb +0 -0
- data/spec/models/insert_xlsx_worksheet_request_spec.rb +54 -0
- data/spec/models/insert_xlsx_worksheet_response_spec.rb +48 -0
- data/{client/spec → spec}/models/pdf_to_png_result_spec.rb +0 -0
- data/{client/spec → spec}/models/remove_docx_headers_and_footers_request_spec.rb +0 -0
- data/{client/spec → spec}/models/remove_docx_headers_and_footers_response_spec.rb +0 -0
- data/{client/spec → spec}/models/replace_string_request_spec.rb +0 -0
- data/{client/spec → spec}/models/screenshot_request_spec.rb +0 -0
- data/{client/spec → spec}/models/viewer_response_spec.rb +0 -0
- data/spec/models/xlsx_image_spec.rb +66 -0
- data/spec/models/xlsx_spreadsheet_cell_spec.rb +66 -0
- data/spec/models/xlsx_spreadsheet_column_spec.rb +48 -0
- data/spec/models/xlsx_spreadsheet_row_spec.rb +48 -0
- data/spec/models/xlsx_worksheet_spec.rb +48 -0
- data/{client/spec → spec}/spec_helper.rb +0 -0
- metadata +261 -171
- data/LICENSE +0 -201
- data/build.ps1 +0 -12
- data/client/docs/DocxInsertImageRequest.md +0 -13
- data/client/docs/InsertDocxTablesRequest.md +0 -10
- data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
- data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
- data/packageconfig.json +0 -11
- data/swagger-codegen-cli.jar +0 -0
@@ -18,6 +18,9 @@ module CloudmersiveConvertApiClient
|
|
18
18
|
# Index of the run, 0-based
|
19
19
|
attr_accessor :run_index
|
20
20
|
|
21
|
+
# The Path of the location of this object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
21
24
|
# Text items inside the run; this is where the actual text content is stored
|
22
25
|
attr_accessor :text_items
|
23
26
|
|
@@ -41,6 +44,7 @@ module CloudmersiveConvertApiClient
|
|
41
44
|
def self.attribute_map
|
42
45
|
{
|
43
46
|
:'run_index' => :'RunIndex',
|
47
|
+
:'path' => :'Path',
|
44
48
|
:'text_items' => :'TextItems',
|
45
49
|
:'bold' => :'Bold',
|
46
50
|
:'italic' => :'Italic',
|
@@ -54,6 +58,7 @@ module CloudmersiveConvertApiClient
|
|
54
58
|
def self.swagger_types
|
55
59
|
{
|
56
60
|
:'run_index' => :'Integer',
|
61
|
+
:'path' => :'String',
|
57
62
|
:'text_items' => :'Array<DocxText>',
|
58
63
|
:'bold' => :'BOOLEAN',
|
59
64
|
:'italic' => :'BOOLEAN',
|
@@ -75,6 +80,10 @@ module CloudmersiveConvertApiClient
|
|
75
80
|
self.run_index = attributes[:'RunIndex']
|
76
81
|
end
|
77
82
|
|
83
|
+
if attributes.has_key?(:'Path')
|
84
|
+
self.path = attributes[:'Path']
|
85
|
+
end
|
86
|
+
|
78
87
|
if attributes.has_key?(:'TextItems')
|
79
88
|
if (value = attributes[:'TextItems']).is_a?(Array)
|
80
89
|
self.text_items = value
|
@@ -122,6 +131,7 @@ module CloudmersiveConvertApiClient
|
|
122
131
|
return true if self.equal?(o)
|
123
132
|
self.class == o.class &&
|
124
133
|
run_index == o.run_index &&
|
134
|
+
path == o.path &&
|
125
135
|
text_items == o.text_items &&
|
126
136
|
bold == o.bold &&
|
127
137
|
italic == o.italic &&
|
@@ -139,7 +149,7 @@ module CloudmersiveConvertApiClient
|
|
139
149
|
# Calculates hash code according to all attributes.
|
140
150
|
# @return [Fixnum] Hash code
|
141
151
|
def hash
|
142
|
-
[run_index, text_items, bold, italic, underline, font_family, font_size].hash
|
152
|
+
[run_index, path, text_items, bold, italic, underline, font_family, font_size].hash
|
143
153
|
end
|
144
154
|
|
145
155
|
# Builds the object from hash
|
@@ -18,18 +18,23 @@ module CloudmersiveConvertApiClient
|
|
18
18
|
# Page numbers that the section starts at, typically just one
|
19
19
|
attr_accessor :starting_page_numbers
|
20
20
|
|
21
|
+
# The Path of the location of this object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
25
|
-
:'starting_page_numbers' => :'StartingPageNumbers'
|
28
|
+
:'starting_page_numbers' => :'StartingPageNumbers',
|
29
|
+
:'path' => :'Path'
|
26
30
|
}
|
27
31
|
end
|
28
32
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.swagger_types
|
31
35
|
{
|
32
|
-
:'starting_page_numbers' => :'Array<Integer>'
|
36
|
+
:'starting_page_numbers' => :'Array<Integer>',
|
37
|
+
:'path' => :'String'
|
33
38
|
}
|
34
39
|
end
|
35
40
|
|
@@ -47,6 +52,10 @@ module CloudmersiveConvertApiClient
|
|
47
52
|
end
|
48
53
|
end
|
49
54
|
|
55
|
+
if attributes.has_key?(:'Path')
|
56
|
+
self.path = attributes[:'Path']
|
57
|
+
end
|
58
|
+
|
50
59
|
end
|
51
60
|
|
52
61
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -67,7 +76,8 @@ module CloudmersiveConvertApiClient
|
|
67
76
|
def ==(o)
|
68
77
|
return true if self.equal?(o)
|
69
78
|
self.class == o.class &&
|
70
|
-
starting_page_numbers == o.starting_page_numbers
|
79
|
+
starting_page_numbers == o.starting_page_numbers &&
|
80
|
+
path == o.path
|
71
81
|
end
|
72
82
|
|
73
83
|
# @see the `==` method
|
@@ -79,7 +89,7 @@ module CloudmersiveConvertApiClient
|
|
79
89
|
# Calculates hash code according to all attributes.
|
80
90
|
# @return [Fixnum] Hash code
|
81
91
|
def hash
|
82
|
-
[starting_page_numbers].hash
|
92
|
+
[starting_page_numbers, path].hash
|
83
93
|
end
|
84
94
|
|
85
95
|
# Builds the object from hash
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -18,6 +18,9 @@ module CloudmersiveConvertApiClient
|
|
18
18
|
# ID of the style
|
19
19
|
attr_accessor :style_id
|
20
20
|
|
21
|
+
# The Path of the location of this object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
21
24
|
# Style applies bold formatting
|
22
25
|
attr_accessor :bold
|
23
26
|
|
@@ -38,6 +41,7 @@ module CloudmersiveConvertApiClient
|
|
38
41
|
def self.attribute_map
|
39
42
|
{
|
40
43
|
:'style_id' => :'StyleID',
|
44
|
+
:'path' => :'Path',
|
41
45
|
:'bold' => :'Bold',
|
42
46
|
:'italic' => :'Italic',
|
43
47
|
:'underline' => :'Underline',
|
@@ -50,6 +54,7 @@ module CloudmersiveConvertApiClient
|
|
50
54
|
def self.swagger_types
|
51
55
|
{
|
52
56
|
:'style_id' => :'String',
|
57
|
+
:'path' => :'String',
|
53
58
|
:'bold' => :'BOOLEAN',
|
54
59
|
:'italic' => :'BOOLEAN',
|
55
60
|
:'underline' => :'BOOLEAN',
|
@@ -70,6 +75,10 @@ module CloudmersiveConvertApiClient
|
|
70
75
|
self.style_id = attributes[:'StyleID']
|
71
76
|
end
|
72
77
|
|
78
|
+
if attributes.has_key?(:'Path')
|
79
|
+
self.path = attributes[:'Path']
|
80
|
+
end
|
81
|
+
|
73
82
|
if attributes.has_key?(:'Bold')
|
74
83
|
self.bold = attributes[:'Bold']
|
75
84
|
end
|
@@ -111,6 +120,7 @@ module CloudmersiveConvertApiClient
|
|
111
120
|
return true if self.equal?(o)
|
112
121
|
self.class == o.class &&
|
113
122
|
style_id == o.style_id &&
|
123
|
+
path == o.path &&
|
114
124
|
bold == o.bold &&
|
115
125
|
italic == o.italic &&
|
116
126
|
underline == o.underline &&
|
@@ -127,7 +137,7 @@ module CloudmersiveConvertApiClient
|
|
127
137
|
# Calculates hash code according to all attributes.
|
128
138
|
# @return [Fixnum] Hash code
|
129
139
|
def hash
|
130
|
-
[style_id, bold, italic, underline, font_size, font_family].hash
|
140
|
+
[style_id, path, bold, italic, underline, font_size, font_family].hash
|
131
141
|
end
|
132
142
|
|
133
143
|
# Builds the object from hash
|
@@ -15,9 +15,12 @@ require 'date'
|
|
15
15
|
module CloudmersiveConvertApiClient
|
16
16
|
# A table in a Word Document (DOCX) file
|
17
17
|
class DocxTable
|
18
|
-
# The ID of the table
|
18
|
+
# The ID of the table; leave blank for new tables
|
19
19
|
attr_accessor :table_id
|
20
20
|
|
21
|
+
# The Path of the location of this object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
21
24
|
# The Width of the table, or 0 if not specified
|
22
25
|
attr_accessor :width
|
23
26
|
|
@@ -134,6 +137,7 @@ module CloudmersiveConvertApiClient
|
|
134
137
|
def self.attribute_map
|
135
138
|
{
|
136
139
|
:'table_id' => :'TableID',
|
140
|
+
:'path' => :'Path',
|
137
141
|
:'width' => :'Width',
|
138
142
|
:'width_type' => :'WidthType',
|
139
143
|
:'table_rows' => :'TableRows',
|
@@ -178,6 +182,7 @@ module CloudmersiveConvertApiClient
|
|
178
182
|
def self.swagger_types
|
179
183
|
{
|
180
184
|
:'table_id' => :'String',
|
185
|
+
:'path' => :'String',
|
181
186
|
:'width' => :'String',
|
182
187
|
:'width_type' => :'String',
|
183
188
|
:'table_rows' => :'Array<DocxTableRow>',
|
@@ -230,6 +235,10 @@ module CloudmersiveConvertApiClient
|
|
230
235
|
self.table_id = attributes[:'TableID']
|
231
236
|
end
|
232
237
|
|
238
|
+
if attributes.has_key?(:'Path')
|
239
|
+
self.path = attributes[:'Path']
|
240
|
+
end
|
241
|
+
|
233
242
|
if attributes.has_key?(:'Width')
|
234
243
|
self.width = attributes[:'Width']
|
235
244
|
end
|
@@ -401,6 +410,7 @@ module CloudmersiveConvertApiClient
|
|
401
410
|
return true if self.equal?(o)
|
402
411
|
self.class == o.class &&
|
403
412
|
table_id == o.table_id &&
|
413
|
+
path == o.path &&
|
404
414
|
width == o.width &&
|
405
415
|
width_type == o.width_type &&
|
406
416
|
table_rows == o.table_rows &&
|
@@ -449,7 +459,7 @@ module CloudmersiveConvertApiClient
|
|
449
459
|
# Calculates hash code according to all attributes.
|
450
460
|
# @return [Fixnum] Hash code
|
451
461
|
def hash
|
452
|
-
[table_id, width, width_type, table_rows, top_border_type, top_border_size, top_border_space, top_border_color, bottom_border_type, bottom_border_size, bottom_border_space, bottom_border_color, left_border_type, left_border_size, left_border_space, left_border_color, right_border_type, right_border_size, right_border_space, right_border_color, cell_horizontal_border_type, cell_horizontal_border_size, cell_horizontal_border_space, cell_horizontal_border_color, cell_vertical_border_type, cell_vertical_border_size, cell_vertical_border_space, cell_vertical_border_color, start_border_type, start_border_size, start_border_space, start_border_color, end_border_type, end_border_size, end_border_space, end_border_color, table_indentation_mode, table_indentation_width].hash
|
462
|
+
[table_id, path, width, width_type, table_rows, top_border_type, top_border_size, top_border_space, top_border_color, bottom_border_type, bottom_border_size, bottom_border_space, bottom_border_color, left_border_type, left_border_size, left_border_space, left_border_color, right_border_type, right_border_size, right_border_space, right_border_color, cell_horizontal_border_type, cell_horizontal_border_size, cell_horizontal_border_space, cell_horizontal_border_color, cell_vertical_border_type, cell_vertical_border_size, cell_vertical_border_space, cell_vertical_border_color, start_border_type, start_border_size, start_border_space, start_border_color, end_border_type, end_border_size, end_border_space, end_border_color, table_indentation_mode, table_indentation_width].hash
|
453
463
|
end
|
454
464
|
|
455
465
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module CloudmersiveConvertApiClient
|
|
18
18
|
# The index of the cell, 0-based
|
19
19
|
attr_accessor :cell_index
|
20
20
|
|
21
|
+
# The Path of the location of this object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
21
24
|
# Paragraphs inside the cell; this is where the contents of the cell are stored
|
22
25
|
attr_accessor :paragraphs
|
23
26
|
|
@@ -41,6 +44,7 @@ module CloudmersiveConvertApiClient
|
|
41
44
|
def self.attribute_map
|
42
45
|
{
|
43
46
|
:'cell_index' => :'CellIndex',
|
47
|
+
:'path' => :'Path',
|
44
48
|
:'paragraphs' => :'Paragraphs',
|
45
49
|
:'cell_shading_color' => :'CellShadingColor',
|
46
50
|
:'cell_shading_fill' => :'CellShadingFill',
|
@@ -54,6 +58,7 @@ module CloudmersiveConvertApiClient
|
|
54
58
|
def self.swagger_types
|
55
59
|
{
|
56
60
|
:'cell_index' => :'Integer',
|
61
|
+
:'path' => :'String',
|
57
62
|
:'paragraphs' => :'Array<DocxParagraph>',
|
58
63
|
:'cell_shading_color' => :'String',
|
59
64
|
:'cell_shading_fill' => :'String',
|
@@ -75,6 +80,10 @@ module CloudmersiveConvertApiClient
|
|
75
80
|
self.cell_index = attributes[:'CellIndex']
|
76
81
|
end
|
77
82
|
|
83
|
+
if attributes.has_key?(:'Path')
|
84
|
+
self.path = attributes[:'Path']
|
85
|
+
end
|
86
|
+
|
78
87
|
if attributes.has_key?(:'Paragraphs')
|
79
88
|
if (value = attributes[:'Paragraphs']).is_a?(Array)
|
80
89
|
self.paragraphs = value
|
@@ -122,6 +131,7 @@ module CloudmersiveConvertApiClient
|
|
122
131
|
return true if self.equal?(o)
|
123
132
|
self.class == o.class &&
|
124
133
|
cell_index == o.cell_index &&
|
134
|
+
path == o.path &&
|
125
135
|
paragraphs == o.paragraphs &&
|
126
136
|
cell_shading_color == o.cell_shading_color &&
|
127
137
|
cell_shading_fill == o.cell_shading_fill &&
|
@@ -139,7 +149,7 @@ module CloudmersiveConvertApiClient
|
|
139
149
|
# Calculates hash code according to all attributes.
|
140
150
|
# @return [Fixnum] Hash code
|
141
151
|
def hash
|
142
|
-
[cell_index, paragraphs, cell_shading_color, cell_shading_fill, cell_shading_pattern, cell_width_mode, cell_width].hash
|
152
|
+
[cell_index, path, paragraphs, cell_shading_color, cell_shading_fill, cell_shading_pattern, cell_width_mode, cell_width].hash
|
143
153
|
end
|
144
154
|
|
145
155
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module CloudmersiveConvertApiClient
|
|
18
18
|
# Index of the row, 0-based
|
19
19
|
attr_accessor :row_index
|
20
20
|
|
21
|
+
# The Path of the location of this object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
21
24
|
# Cells in the row; this is where the contents of the row is stored
|
22
25
|
attr_accessor :row_cells
|
23
26
|
|
@@ -26,6 +29,7 @@ module CloudmersiveConvertApiClient
|
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'row_index' => :'RowIndex',
|
32
|
+
:'path' => :'Path',
|
29
33
|
:'row_cells' => :'RowCells'
|
30
34
|
}
|
31
35
|
end
|
@@ -34,6 +38,7 @@ module CloudmersiveConvertApiClient
|
|
34
38
|
def self.swagger_types
|
35
39
|
{
|
36
40
|
:'row_index' => :'Integer',
|
41
|
+
:'path' => :'String',
|
37
42
|
:'row_cells' => :'Array<DocxTableCell>'
|
38
43
|
}
|
39
44
|
end
|
@@ -50,6 +55,10 @@ module CloudmersiveConvertApiClient
|
|
50
55
|
self.row_index = attributes[:'RowIndex']
|
51
56
|
end
|
52
57
|
|
58
|
+
if attributes.has_key?(:'Path')
|
59
|
+
self.path = attributes[:'Path']
|
60
|
+
end
|
61
|
+
|
53
62
|
if attributes.has_key?(:'RowCells')
|
54
63
|
if (value = attributes[:'RowCells']).is_a?(Array)
|
55
64
|
self.row_cells = value
|
@@ -77,6 +86,7 @@ module CloudmersiveConvertApiClient
|
|
77
86
|
return true if self.equal?(o)
|
78
87
|
self.class == o.class &&
|
79
88
|
row_index == o.row_index &&
|
89
|
+
path == o.path &&
|
80
90
|
row_cells == o.row_cells
|
81
91
|
end
|
82
92
|
|
@@ -89,7 +99,7 @@ module CloudmersiveConvertApiClient
|
|
89
99
|
# Calculates hash code according to all attributes.
|
90
100
|
# @return [Fixnum] Hash code
|
91
101
|
def hash
|
92
|
-
[row_index, row_cells].hash
|
102
|
+
[row_index, path, row_cells].hash
|
93
103
|
end
|
94
104
|
|
95
105
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module CloudmersiveConvertApiClient
|
|
18
18
|
# Index of the text content in the run; 0-based
|
19
19
|
attr_accessor :text_index
|
20
20
|
|
21
|
+
# The Path of the location of this object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
21
24
|
# Text string containing the text content of this text content item
|
22
25
|
attr_accessor :text_content
|
23
26
|
|
@@ -26,6 +29,7 @@ module CloudmersiveConvertApiClient
|
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'text_index' => :'TextIndex',
|
32
|
+
:'path' => :'Path',
|
29
33
|
:'text_content' => :'TextContent'
|
30
34
|
}
|
31
35
|
end
|
@@ -34,6 +38,7 @@ module CloudmersiveConvertApiClient
|
|
34
38
|
def self.swagger_types
|
35
39
|
{
|
36
40
|
:'text_index' => :'Integer',
|
41
|
+
:'path' => :'String',
|
37
42
|
:'text_content' => :'String'
|
38
43
|
}
|
39
44
|
end
|
@@ -50,6 +55,10 @@ module CloudmersiveConvertApiClient
|
|
50
55
|
self.text_index = attributes[:'TextIndex']
|
51
56
|
end
|
52
57
|
|
58
|
+
if attributes.has_key?(:'Path')
|
59
|
+
self.path = attributes[:'Path']
|
60
|
+
end
|
61
|
+
|
53
62
|
if attributes.has_key?(:'TextContent')
|
54
63
|
self.text_content = attributes[:'TextContent']
|
55
64
|
end
|
@@ -75,6 +84,7 @@ module CloudmersiveConvertApiClient
|
|
75
84
|
return true if self.equal?(o)
|
76
85
|
self.class == o.class &&
|
77
86
|
text_index == o.text_index &&
|
87
|
+
path == o.path &&
|
78
88
|
text_content == o.text_content
|
79
89
|
end
|
80
90
|
|
@@ -87,7 +97,7 @@ module CloudmersiveConvertApiClient
|
|
87
97
|
# Calculates hash code according to all attributes.
|
88
98
|
# @return [Fixnum] Hash code
|
89
99
|
def hash
|
90
|
-
[text_index, text_content].hash
|
100
|
+
[text_index, path, text_content].hash
|
91
101
|
end
|
92
102
|
|
93
103
|
# Builds the object from hash
|
@@ -0,0 +1,206 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
# EXIF tag and value
|
17
|
+
class ExifValue
|
18
|
+
attr_accessor :tag
|
19
|
+
|
20
|
+
attr_accessor :data_type
|
21
|
+
|
22
|
+
attr_accessor :data_value
|
23
|
+
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'tag' => :'Tag',
|
29
|
+
:'data_type' => :'DataType',
|
30
|
+
:'data_value' => :'DataValue'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.swagger_types
|
36
|
+
{
|
37
|
+
:'tag' => :'String',
|
38
|
+
:'data_type' => :'String',
|
39
|
+
:'data_value' => :'String'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
return unless attributes.is_a?(Hash)
|
47
|
+
|
48
|
+
# convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
|
+
|
51
|
+
if attributes.has_key?(:'Tag')
|
52
|
+
self.tag = attributes[:'Tag']
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'DataType')
|
56
|
+
self.data_type = attributes[:'DataType']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'DataValue')
|
60
|
+
self.data_value = attributes[:'DataValue']
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
+
# @return Array for valid properties with the reasons
|
67
|
+
def list_invalid_properties
|
68
|
+
invalid_properties = Array.new
|
69
|
+
return invalid_properties
|
70
|
+
end
|
71
|
+
|
72
|
+
# Check to see if the all the properties in the model are valid
|
73
|
+
# @return true if the model is valid
|
74
|
+
def valid?
|
75
|
+
return true
|
76
|
+
end
|
77
|
+
|
78
|
+
# Checks equality by comparing each attribute.
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def ==(o)
|
81
|
+
return true if self.equal?(o)
|
82
|
+
self.class == o.class &&
|
83
|
+
tag == o.tag &&
|
84
|
+
data_type == o.data_type &&
|
85
|
+
data_value == o.data_value
|
86
|
+
end
|
87
|
+
|
88
|
+
# @see the `==` method
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
92
|
+
end
|
93
|
+
|
94
|
+
# Calculates hash code according to all attributes.
|
95
|
+
# @return [Fixnum] Hash code
|
96
|
+
def hash
|
97
|
+
[tag, data_type, data_value].hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def build_from_hash(attributes)
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
105
|
+
self.class.swagger_types.each_pair do |key, type|
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
107
|
+
# check to ensure the input is an array given that the the attribute
|
108
|
+
# is documented as an array but the input is not
|
109
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
111
|
+
end
|
112
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
115
|
+
end
|
116
|
+
|
117
|
+
self
|
118
|
+
end
|
119
|
+
|
120
|
+
# Deserializes the data based on type
|
121
|
+
# @param string type Data type
|
122
|
+
# @param string value Value to be deserialized
|
123
|
+
# @return [Object] Deserialized data
|
124
|
+
def _deserialize(type, value)
|
125
|
+
case type.to_sym
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
128
|
+
when :Date
|
129
|
+
Date.parse(value)
|
130
|
+
when :String
|
131
|
+
value.to_s
|
132
|
+
when :Integer
|
133
|
+
value.to_i
|
134
|
+
when :Float
|
135
|
+
value.to_f
|
136
|
+
when :BOOLEAN
|
137
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
+
true
|
139
|
+
else
|
140
|
+
false
|
141
|
+
end
|
142
|
+
when :Object
|
143
|
+
# generic object (usually a Hash), return directly
|
144
|
+
value
|
145
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
+
inner_type = Regexp.last_match[:inner_type]
|
147
|
+
value.map { |v| _deserialize(inner_type, v) }
|
148
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
+
k_type = Regexp.last_match[:k_type]
|
150
|
+
v_type = Regexp.last_match[:v_type]
|
151
|
+
{}.tap do |hash|
|
152
|
+
value.each do |k, v|
|
153
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
else # model
|
157
|
+
temp_model = CloudmersiveConvertApiClient.const_get(type).new
|
158
|
+
temp_model.build_from_hash(value)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the string representation of the object
|
163
|
+
# @return [String] String presentation of the object
|
164
|
+
def to_s
|
165
|
+
to_hash.to_s
|
166
|
+
end
|
167
|
+
|
168
|
+
# to_body is an alias to to_hash (backward compatibility)
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_body
|
171
|
+
to_hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the object in the form of hash
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_hash
|
177
|
+
hash = {}
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
179
|
+
value = self.send(attr)
|
180
|
+
next if value.nil?
|
181
|
+
hash[param] = _to_hash(value)
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Outputs non-array value in the form of hash
|
187
|
+
# For object, use to_hash. Otherwise, just return the value
|
188
|
+
# @param [Object] value Any valid value
|
189
|
+
# @return [Hash] Returns the value in the form of hash
|
190
|
+
def _to_hash(value)
|
191
|
+
if value.is_a?(Array)
|
192
|
+
value.compact.map{ |v| _to_hash(v) }
|
193
|
+
elsif value.is_a?(Hash)
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
+
end
|
197
|
+
elsif value.respond_to? :to_hash
|
198
|
+
value.to_hash
|
199
|
+
else
|
200
|
+
value
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
end
|
205
|
+
|
206
|
+
end
|