Class: TencentCloud::Ocr::V20181119::ExtractDocMultiResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::ExtractDocMultiResponse
- Defined in:
- lib/v20181119/models.rb
Overview
ExtractDocMulti返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(angle = nil, structurallist = nil, wordlist = nil, tokennum = nil, requestid = nil) ⇒ ExtractDocMultiResponse
constructor
A new instance of ExtractDocMultiResponse.
Constructor Details
#initialize(angle = nil, structurallist = nil, wordlist = nil, tokennum = nil, requestid = nil) ⇒ ExtractDocMultiResponse
Returns a new instance of ExtractDocMultiResponse.
3441 3442 3443 3444 3445 3446 3447 |
# File 'lib/v20181119/models.rb', line 3441 def initialize(angle=nil, structurallist=nil, wordlist=nil, tokennum=nil, requestid=nil) @Angle = angle @StructuralList = structurallist @WordList = wordlist @TokenNum = tokennum @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
3439 3440 3441 |
# File 'lib/v20181119/models.rb', line 3439 def Angle @Angle end |
#RequestId ⇒ Object
3439 3440 3441 |
# File 'lib/v20181119/models.rb', line 3439 def RequestId @RequestId end |
#StructuralList ⇒ Object
3439 3440 3441 |
# File 'lib/v20181119/models.rb', line 3439 def StructuralList @StructuralList end |
#TokenNum ⇒ Object
3439 3440 3441 |
# File 'lib/v20181119/models.rb', line 3439 def TokenNum @TokenNum end |
#WordList ⇒ Object
3439 3440 3441 |
# File 'lib/v20181119/models.rb', line 3439 def WordList @WordList end |
Instance Method Details
#deserialize(params) ⇒ Object
3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 |
# File 'lib/v20181119/models.rb', line 3449 def deserialize(params) @Angle = params['Angle'] unless params['StructuralList'].nil? @StructuralList = [] params['StructuralList'].each do |i| groupinfo_tmp = GroupInfo.new groupinfo_tmp.deserialize(i) @StructuralList << groupinfo_tmp end end unless params['WordList'].nil? @WordList = [] params['WordList'].each do |i| worditem_tmp = WordItem.new worditem_tmp.deserialize(i) @WordList << worditem_tmp end end @TokenNum = params['TokenNum'] @RequestId = params['RequestId'] end |