Class: TencentCloud::Asr::V20190614::AsyncRecognitionTasks
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Asr::V20190614::AsyncRecognitionTasks
- Defined in:
- lib/v20190614/models.rb
Overview
Instance Attribute Summary collapse
-
#Tasks ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(tasks = nil) ⇒ AsyncRecognitionTasks
constructor
A new instance of AsyncRecognitionTasks.
Constructor Details
#initialize(tasks = nil) ⇒ AsyncRecognitionTasks
Returns a new instance of AsyncRecognitionTasks.
48 49 50 |
# File 'lib/v20190614/models.rb', line 48 def initialize(tasks=nil) @Tasks = tasks end |
Instance Attribute Details
#Tasks ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
46 47 48 |
# File 'lib/v20190614/models.rb', line 46 def Tasks @Tasks end |
Instance Method Details
#deserialize(params) ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/v20190614/models.rb', line 52 def deserialize(params) unless params['Tasks'].nil? @Tasks = [] params['Tasks'].each do |i| asyncrecognitiontaskinfo_tmp = AsyncRecognitionTaskInfo.new asyncrecognitiontaskinfo_tmp.deserialize(i) @Tasks << asyncrecognitiontaskinfo_tmp end end end |