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.
2746 2747 2748 2749 2750 2751 2752 |
# File 'lib/v20181119/models.rb', line 2746 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,表示取不到有效值。
2744 2745 2746 |
# File 'lib/v20181119/models.rb', line 2744 def Coord @Coord end |
#GroupType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2744 2745 2746 |
# File 'lib/v20181119/models.rb', line 2744 def GroupType @GroupType end |
#Index ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2744 2745 2746 |
# File 'lib/v20181119/models.rb', line 2744 def Index @Index end |
#ResultList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2744 2745 2746 |
# File 'lib/v20181119/models.rb', line 2744 def ResultList @ResultList end |
#Text ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2744 2745 2746 |
# File 'lib/v20181119/models.rb', line 2744 def Text @Text end |
Instance Method Details
#deserialize(params) ⇒ Object
2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 |
# File 'lib/v20181119/models.rb', line 2754 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 |