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.
3181 3182 3183 3184 3185 3186 3187 |
# File 'lib/v20181119/models.rb', line 3181 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
3179 3180 3181 |
# File 'lib/v20181119/models.rb', line 3179 def Angle @Angle end |
#RequestId ⇒ Object
3179 3180 3181 |
# File 'lib/v20181119/models.rb', line 3179 def RequestId @RequestId end |
#StructuralList ⇒ Object
3179 3180 3181 |
# File 'lib/v20181119/models.rb', line 3179 def StructuralList @StructuralList end |
#TokenNum ⇒ Object
3179 3180 3181 |
# File 'lib/v20181119/models.rb', line 3179 def TokenNum @TokenNum end |
#WordList ⇒ Object
3179 3180 3181 |
# File 'lib/v20181119/models.rb', line 3179 def WordList @WordList end |
Instance Method Details
#deserialize(params) ⇒ Object
3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 |
# File 'lib/v20181119/models.rb', line 3189 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 |