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.
9648 9649 9650 9651 9652 9653 9654 |
# File 'lib/v20181119/models.rb', line 9648 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
9646 9647 9648 |
# File 'lib/v20181119/models.rb', line 9646 def Angle @Angle end |
#Data ⇒ Object
9646 9647 9648 |
# File 'lib/v20181119/models.rb', line 9646 def Data @Data end |
#PdfPageSize ⇒ Object
9646 9647 9648 |
# File 'lib/v20181119/models.rb', line 9646 def PdfPageSize @PdfPageSize end |
#RequestId ⇒ Object
9646 9647 9648 |
# File 'lib/v20181119/models.rb', line 9646 def RequestId @RequestId end |
#TableDetections ⇒ Object
9646 9647 9648 |
# File 'lib/v20181119/models.rb', line 9646 def TableDetections @TableDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 |
# File 'lib/v20181119/models.rb', line 9656 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 |