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.
3051 3052 3053 3054 3055 3056 3057 |
# File 'lib/v20181119/models.rb', line 3051 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
3049 3050 3051 |
# File 'lib/v20181119/models.rb', line 3049 def Angle @Angle end |
#RequestId ⇒ Object
3049 3050 3051 |
# File 'lib/v20181119/models.rb', line 3049 def RequestId @RequestId end |
#StructuralList ⇒ Object
3049 3050 3051 |
# File 'lib/v20181119/models.rb', line 3049 def StructuralList @StructuralList end |
#TokenNum ⇒ Object
3049 3050 3051 |
# File 'lib/v20181119/models.rb', line 3049 def TokenNum @TokenNum end |
#WordList ⇒ Object
3049 3050 3051 |
# File 'lib/v20181119/models.rb', line 3049 def WordList @WordList end |
Instance Method Details
#deserialize(params) ⇒ Object
3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 |
# File 'lib/v20181119/models.rb', line 3059 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 |