Class: TencentCloud::Cii::V20210408::StructureResultObject
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cii::V20210408::StructureResultObject
- Defined in:
- lib/v20210408/models.rb
Overview
结构化结果
Instance Attribute Summary collapse
-
#Code ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ResultFields ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#StructureResult ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#SubTaskId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TaskFiles ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TaskType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(code = nil, tasktype = nil, structureresult = nil, subtaskid = nil, taskfiles = nil, resultfields = nil) ⇒ StructureResultObject
constructor
A new instance of StructureResultObject.
Constructor Details
#initialize(code = nil, tasktype = nil, structureresult = nil, subtaskid = nil, taskfiles = nil, resultfields = nil) ⇒ StructureResultObject
Returns a new instance of StructureResultObject.
1271 1272 1273 1274 1275 1276 1277 1278 |
# File 'lib/v20210408/models.rb', line 1271 def initialize(code=nil, tasktype=nil, structureresult=nil, subtaskid=nil, taskfiles=nil, resultfields=nil) @Code = code @TaskType = tasktype @StructureResult = structureresult @SubTaskId = subtaskid @TaskFiles = taskfiles @ResultFields = resultfields end |
Instance Attribute Details
#Code ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1269 1270 1271 |
# File 'lib/v20210408/models.rb', line 1269 def Code @Code end |
#ResultFields ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1269 1270 1271 |
# File 'lib/v20210408/models.rb', line 1269 def ResultFields @ResultFields end |
#StructureResult ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1269 1270 1271 |
# File 'lib/v20210408/models.rb', line 1269 def StructureResult @StructureResult end |
#SubTaskId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1269 1270 1271 |
# File 'lib/v20210408/models.rb', line 1269 def SubTaskId @SubTaskId end |
#TaskFiles ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1269 1270 1271 |
# File 'lib/v20210408/models.rb', line 1269 def TaskFiles @TaskFiles end |
#TaskType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1269 1270 1271 |
# File 'lib/v20210408/models.rb', line 1269 def TaskType @TaskType end |
Instance Method Details
#deserialize(params) ⇒ Object
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 |
# File 'lib/v20210408/models.rb', line 1280 def deserialize(params) @Code = params['Code'] @TaskType = params['TaskType'] @StructureResult = params['StructureResult'] @SubTaskId = params['SubTaskId'] @TaskFiles = params['TaskFiles'] unless params['ResultFields'].nil? @ResultFields = [] params['ResultFields'].each do |i| ocrrecognise_tmp = OcrRecognise.new ocrrecognise_tmp.deserialize(i) @ResultFields << ocrrecognise_tmp end end end |