Class: TencentCloud::Ocr::V20181119::SmartStructuralOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::SmartStructuralOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
SmartStructuralOCR返回参数结构体
Instance Attribute Summary collapse
-
#Angle ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#RequestId ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#StructuralItems ⇒ Object
为 0;顺时针为正,逆时针为负.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(angle = nil, structuralitems = nil, requestid = nil) ⇒ SmartStructuralOCRResponse
constructor
A new instance of SmartStructuralOCRResponse.
Constructor Details
#initialize(angle = nil, structuralitems = nil, requestid = nil) ⇒ SmartStructuralOCRResponse
Returns a new instance of SmartStructuralOCRResponse.
11244 11245 11246 11247 11248 |
# File 'lib/v20181119/models.rb', line 11244 def initialize(angle=nil, structuralitems=nil, requestid=nil) @Angle = angle @StructuralItems = structuralitems @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
为 0;顺时针为正,逆时针为负
11242 11243 11244 |
# File 'lib/v20181119/models.rb', line 11242 def Angle @Angle end |
#RequestId ⇒ Object
为 0;顺时针为正,逆时针为负
11242 11243 11244 |
# File 'lib/v20181119/models.rb', line 11242 def RequestId @RequestId end |
#StructuralItems ⇒ Object
为 0;顺时针为正,逆时针为负
11242 11243 11244 |
# File 'lib/v20181119/models.rb', line 11242 def StructuralItems @StructuralItems end |
Instance Method Details
#deserialize(params) ⇒ Object
11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 |
# File 'lib/v20181119/models.rb', line 11250 def deserialize(params) @Angle = params['Angle'] unless params['StructuralItems'].nil? @StructuralItems = [] params['StructuralItems'].each do |i| structuralitem_tmp = StructuralItem.new structuralitem_tmp.deserialize(i) @StructuralItems << structuralitem_tmp end end @RequestId = params['RequestId'] end |