Class: TencentCloud::Ocr::V20181119::ExtractDocBasicResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::ExtractDocBasicResponse
- Defined in:
- lib/v20181119/models.rb
Overview
ExtractDocBasic返回参数结构体
Instance Attribute Summary collapse
-
#Angle ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#RequestId ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#SealInfos ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#StructuralList ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#WordList ⇒ Object
为 0;顺时针为正,逆时针为负.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(angle = nil, structurallist = nil, wordlist = nil, sealinfos = nil, requestid = nil) ⇒ ExtractDocBasicResponse
constructor
A new instance of ExtractDocBasicResponse.
Constructor Details
#initialize(angle = nil, structurallist = nil, wordlist = nil, sealinfos = nil, requestid = nil) ⇒ ExtractDocBasicResponse
Returns a new instance of ExtractDocBasicResponse.
3196 3197 3198 3199 3200 3201 3202 |
# File 'lib/v20181119/models.rb', line 3196 def initialize(angle=nil, structurallist=nil, wordlist=nil, sealinfos=nil, requestid=nil) @Angle = angle @StructuralList = structurallist @WordList = wordlist @SealInfos = sealinfos @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
为 0;顺时针为正,逆时针为负
3194 3195 3196 |
# File 'lib/v20181119/models.rb', line 3194 def Angle @Angle end |
#RequestId ⇒ Object
为 0;顺时针为正,逆时针为负
3194 3195 3196 |
# File 'lib/v20181119/models.rb', line 3194 def RequestId @RequestId end |
#SealInfos ⇒ Object
为 0;顺时针为正,逆时针为负
3194 3195 3196 |
# File 'lib/v20181119/models.rb', line 3194 def SealInfos @SealInfos end |
#StructuralList ⇒ Object
为 0;顺时针为正,逆时针为负
3194 3195 3196 |
# File 'lib/v20181119/models.rb', line 3194 def StructuralList @StructuralList end |
#WordList ⇒ Object
为 0;顺时针为正,逆时针为负
3194 3195 3196 |
# File 'lib/v20181119/models.rb', line 3194 def WordList @WordList end |
Instance Method Details
#deserialize(params) ⇒ Object
3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 |
# File 'lib/v20181119/models.rb', line 3204 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 unless params['SealInfos'].nil? @SealInfos = [] params['SealInfos'].each do |i| sealinfo_tmp = SealInfo.new sealinfo_tmp.deserialize(i) @SealInfos << sealinfo_tmp end end @RequestId = params['RequestId'] end |