Class: TencentCloud::Ocr::V20181119::SmartStructuralProResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::SmartStructuralProResponse
- Defined in:
- lib/v20181119/models.rb
Overview
SmartStructuralPro返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(angle = nil, structurallist = nil, wordlist = nil, requestid = nil) ⇒ SmartStructuralProResponse
constructor
A new instance of SmartStructuralProResponse.
Constructor Details
#initialize(angle = nil, structurallist = nil, wordlist = nil, requestid = nil) ⇒ SmartStructuralProResponse
Returns a new instance of SmartStructuralProResponse.
10991 10992 10993 10994 10995 10996 |
# File 'lib/v20181119/models.rb', line 10991 def initialize(angle=nil, structurallist=nil, wordlist=nil, requestid=nil) @Angle = angle @StructuralList = structurallist @WordList = wordlist @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
10989 10990 10991 |
# File 'lib/v20181119/models.rb', line 10989 def Angle @Angle end |
#RequestId ⇒ Object
10989 10990 10991 |
# File 'lib/v20181119/models.rb', line 10989 def RequestId @RequestId end |
#StructuralList ⇒ Object
10989 10990 10991 |
# File 'lib/v20181119/models.rb', line 10989 def StructuralList @StructuralList end |
#WordList ⇒ Object
10989 10990 10991 |
# File 'lib/v20181119/models.rb', line 10989 def WordList @WordList end |
Instance Method Details
#deserialize(params) ⇒ Object
10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 |
# File 'lib/v20181119/models.rb', line 10998 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 @RequestId = params['RequestId'] end |