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.
10819 10820 10821 10822 10823 |
# File 'lib/v20181119/models.rb', line 10819 def initialize(angle=nil, structuralitems=nil, requestid=nil) @Angle = angle @StructuralItems = structuralitems @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
为 0;顺时针为正,逆时针为负
10817 10818 10819 |
# File 'lib/v20181119/models.rb', line 10817 def Angle @Angle end |
#RequestId ⇒ Object
为 0;顺时针为正,逆时针为负
10817 10818 10819 |
# File 'lib/v20181119/models.rb', line 10817 def RequestId @RequestId end |
#StructuralItems ⇒ Object
为 0;顺时针为正,逆时针为负
10817 10818 10819 |
# File 'lib/v20181119/models.rb', line 10817 def StructuralItems @StructuralItems end |
Instance Method Details
#deserialize(params) ⇒ Object
10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 |
# File 'lib/v20181119/models.rb', line 10825 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 |