Class: TencentCloud::Ocr::V20181119::RecognizeTableOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::RecognizeTableOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
RecognizeTableOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(tabledetections = nil, data = nil, pdfpagesize = nil, angle = nil, requestid = nil) ⇒ RecognizeTableOCRResponse
constructor
A new instance of RecognizeTableOCRResponse.
Constructor Details
#initialize(tabledetections = nil, data = nil, pdfpagesize = nil, angle = nil, requestid = nil) ⇒ RecognizeTableOCRResponse
Returns a new instance of RecognizeTableOCRResponse.
8833 8834 8835 8836 8837 8838 8839 |
# File 'lib/v20181119/models.rb', line 8833 def initialize(tabledetections=nil, data=nil, pdfpagesize=nil, angle=nil, requestid=nil) @TableDetections = tabledetections @Data = data @PdfPageSize = pdfpagesize @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
8831 8832 8833 |
# File 'lib/v20181119/models.rb', line 8831 def Angle @Angle end |
#Data ⇒ Object
8831 8832 8833 |
# File 'lib/v20181119/models.rb', line 8831 def Data @Data end |
#PdfPageSize ⇒ Object
8831 8832 8833 |
# File 'lib/v20181119/models.rb', line 8831 def PdfPageSize @PdfPageSize end |
#RequestId ⇒ Object
8831 8832 8833 |
# File 'lib/v20181119/models.rb', line 8831 def RequestId @RequestId end |
#TableDetections ⇒ Object
8831 8832 8833 |
# File 'lib/v20181119/models.rb', line 8831 def TableDetections @TableDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 |
# File 'lib/v20181119/models.rb', line 8841 def deserialize(params) unless params['TableDetections'].nil? @TableDetections = [] params['TableDetections'].each do |i| tabledetectinfo_tmp = TableDetectInfo.new tabledetectinfo_tmp.deserialize(i) @TableDetections << tabledetectinfo_tmp end end @Data = params['Data'] @PdfPageSize = params['PdfPageSize'] @Angle = params['Angle'] @RequestId = params['RequestId'] end |