Class: TencentCloud::Ocr::V20181119::Element
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::Element
- Defined in:
- lib/v20181119/models.rb
Overview
试题识别结果-元素内容
Instance Attribute Summary collapse
-
#Coord ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#GroupType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Index ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ResultList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Text ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(text = nil, coord = nil, grouptype = nil, resultlist = nil, index = nil) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(text = nil, coord = nil, grouptype = nil, resultlist = nil, index = nil) ⇒ Element
Returns a new instance of Element.
2574 2575 2576 2577 2578 2579 2580 |
# File 'lib/v20181119/models.rb', line 2574 def initialize(text=nil, coord=nil, grouptype=nil, resultlist=nil, index=nil) @Text = text @Coord = coord @GroupType = grouptype @ResultList = resultlist @Index = index end |
Instance Attribute Details
#Coord ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2572 2573 2574 |
# File 'lib/v20181119/models.rb', line 2572 def Coord @Coord end |
#GroupType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2572 2573 2574 |
# File 'lib/v20181119/models.rb', line 2572 def GroupType @GroupType end |
#Index ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2572 2573 2574 |
# File 'lib/v20181119/models.rb', line 2572 def Index @Index end |
#ResultList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2572 2573 2574 |
# File 'lib/v20181119/models.rb', line 2572 def ResultList @ResultList end |
#Text ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2572 2573 2574 |
# File 'lib/v20181119/models.rb', line 2572 def Text @Text end |
Instance Method Details
#deserialize(params) ⇒ Object
2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 |
# File 'lib/v20181119/models.rb', line 2582 def deserialize(params) @Text = params['Text'] unless params['Coord'].nil? @Coord = Polygon.new @Coord.deserialize(params['Coord']) end @GroupType = params['GroupType'] unless params['ResultList'].nil? @ResultList = [] params['ResultList'].each do |i| resultlist_tmp = ResultList.new resultlist_tmp.deserialize(i) @ResultList << resultlist_tmp end end @Index = params['Index'] end |