Class: TencentCloud::Ie::V20200304::HighlightsTaskResultItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ie::V20200304::HighlightsTaskResultItem
- Defined in:
- lib/v20200304/models.rb
Overview
智能集锦结果项
Instance Attribute Summary collapse
- #Confidence ⇒ Object
- #CovImgUrl ⇒ Object
- #Duration ⇒ Object
- #HighlightUrl ⇒ Object
- #SegmentSet ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(highlighturl = nil, covimgurl = nil, confidence = nil, duration = nil, segmentset = nil) ⇒ HighlightsTaskResultItem
constructor
A new instance of HighlightsTaskResultItem.
Constructor Details
#initialize(highlighturl = nil, covimgurl = nil, confidence = nil, duration = nil, segmentset = nil) ⇒ HighlightsTaskResultItem
Returns a new instance of HighlightsTaskResultItem.
1366 1367 1368 1369 1370 1371 1372 |
# File 'lib/v20200304/models.rb', line 1366 def initialize(highlighturl=nil, covimgurl=nil, confidence=nil, duration=nil, segmentset=nil) @HighlightUrl = highlighturl @CovImgUrl = covimgurl @Confidence = confidence @Duration = duration @SegmentSet = segmentset end |
Instance Attribute Details
#Confidence ⇒ Object
1364 1365 1366 |
# File 'lib/v20200304/models.rb', line 1364 def Confidence @Confidence end |
#CovImgUrl ⇒ Object
1364 1365 1366 |
# File 'lib/v20200304/models.rb', line 1364 def CovImgUrl @CovImgUrl end |
#Duration ⇒ Object
1364 1365 1366 |
# File 'lib/v20200304/models.rb', line 1364 def Duration @Duration end |
#HighlightUrl ⇒ Object
1364 1365 1366 |
# File 'lib/v20200304/models.rb', line 1364 def HighlightUrl @HighlightUrl end |
#SegmentSet ⇒ Object
1364 1365 1366 |
# File 'lib/v20200304/models.rb', line 1364 def SegmentSet @SegmentSet end |
Instance Method Details
#deserialize(params) ⇒ Object
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 |
# File 'lib/v20200304/models.rb', line 1374 def deserialize(params) @HighlightUrl = params['HighlightUrl'] @CovImgUrl = params['CovImgUrl'] @Confidence = params['Confidence'] @Duration = params['Duration'] unless params['SegmentSet'].nil? @SegmentSet = [] params['SegmentSet'].each do |i| highlightstaskresultitemsegment_tmp = HighlightsTaskResultItemSegment.new highlightstaskresultitemsegment_tmp.deserialize(i) @SegmentSet << highlightstaskresultitemsegment_tmp end end end |