Class: TencentCloud::Ocr::V20181119::ExtractDocMultiProResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::ExtractDocMultiProResponse
- Defined in:
- lib/v20181119/models.rb
Overview
ExtractDocMultiPro返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(angle = nil, structurallist = nil, wordlist = nil, tokennum = nil, requestid = nil) ⇒ ExtractDocMultiProResponse
constructor
A new instance of ExtractDocMultiProResponse.
Constructor Details
#initialize(angle = nil, structurallist = nil, wordlist = nil, tokennum = nil, requestid = nil) ⇒ ExtractDocMultiProResponse
Returns a new instance of ExtractDocMultiProResponse.
3309 3310 3311 3312 3313 3314 3315 |
# File 'lib/v20181119/models.rb', line 3309 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
3307 3308 3309 |
# File 'lib/v20181119/models.rb', line 3307 def Angle @Angle end |
#RequestId ⇒ Object
3307 3308 3309 |
# File 'lib/v20181119/models.rb', line 3307 def RequestId @RequestId end |
#StructuralList ⇒ Object
3307 3308 3309 |
# File 'lib/v20181119/models.rb', line 3307 def StructuralList @StructuralList end |
#TokenNum ⇒ Object
3307 3308 3309 |
# File 'lib/v20181119/models.rb', line 3307 def TokenNum @TokenNum end |
#WordList ⇒ Object
3307 3308 3309 |
# File 'lib/v20181119/models.rb', line 3307 def WordList @WordList end |
Instance Method Details
#deserialize(params) ⇒ Object
3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 |
# File 'lib/v20181119/models.rb', line 3317 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 |