Class: TencentCloud::Dbbrain::V20191016::ScoreDetail
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20191016::ScoreDetail
- Defined in:
- lib/v20191016/models.rb
Overview
扣分详情。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(issuetype = nil, scorelost = nil, scorelostmax = nil, items = nil) ⇒ ScoreDetail
constructor
A new instance of ScoreDetail.
Constructor Details
#initialize(issuetype = nil, scorelost = nil, scorelostmax = nil, items = nil) ⇒ ScoreDetail
Returns a new instance of ScoreDetail.
2605 2606 2607 2608 2609 2610 |
# File 'lib/v20191016/models.rb', line 2605 def initialize(issuetype=nil, scorelost=nil, scorelostmax=nil, items=nil) @IssueType = issuetype @ScoreLost = scorelost @ScoreLostMax = scorelostmax @Items = items end |
Instance Attribute Details
#IssueType ⇒ Object
2603 2604 2605 |
# File 'lib/v20191016/models.rb', line 2603 def IssueType @IssueType end |
#Items ⇒ Object
2603 2604 2605 |
# File 'lib/v20191016/models.rb', line 2603 def Items @Items end |
#ScoreLost ⇒ Object
2603 2604 2605 |
# File 'lib/v20191016/models.rb', line 2603 def ScoreLost @ScoreLost end |
#ScoreLostMax ⇒ Object
2603 2604 2605 |
# File 'lib/v20191016/models.rb', line 2603 def ScoreLostMax @ScoreLostMax end |
Instance Method Details
#deserialize(params) ⇒ Object
2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 |
# File 'lib/v20191016/models.rb', line 2612 def deserialize(params) @IssueType = params['IssueType'] @ScoreLost = params['ScoreLost'] @ScoreLostMax = params['ScoreLostMax'] unless params['Items'].nil? @Items = [] params['Items'].each do |i| scoreitem_tmp = ScoreItem.new scoreitem_tmp.deserialize(i) @Items << scoreitem_tmp end end end |