Class: TencentCloud::Ecc::V20181213::CorrectData
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ecc::V20181213::CorrectData
- Defined in:
- lib/v20181213/models.rb
Overview
批改的结果
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(score = nil, scorecat = nil, comment = nil, sentencecomments = nil) ⇒ CorrectData
constructor
A new instance of CorrectData.
Constructor Details
#initialize(score = nil, scorecat = nil, comment = nil, sentencecomments = nil) ⇒ CorrectData
Returns a new instance of CorrectData.
125 126 127 128 129 130 |
# File 'lib/v20181213/models.rb', line 125 def initialize(score=nil, scorecat=nil, comment=nil, sentencecomments=nil) @Score = score @ScoreCat = scorecat @Comment = comment @SentenceComments = sentencecomments end |
Instance Attribute Details
#Comment ⇒ Object
123 124 125 |
# File 'lib/v20181213/models.rb', line 123 def Comment @Comment end |
#Score ⇒ Object
123 124 125 |
# File 'lib/v20181213/models.rb', line 123 def Score @Score end |
#ScoreCat ⇒ Object
123 124 125 |
# File 'lib/v20181213/models.rb', line 123 def ScoreCat @ScoreCat end |
#SentenceComments ⇒ Object
123 124 125 |
# File 'lib/v20181213/models.rb', line 123 def SentenceComments @SentenceComments end |
Instance Method Details
#deserialize(params) ⇒ Object
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/v20181213/models.rb', line 132 def deserialize(params) @Score = params['Score'] unless params['ScoreCat'].nil? @ScoreCat = ScoreCategory.new @ScoreCat.deserialize(params['ScoreCat']) end @Comment = params['Comment'] unless params['SentenceComments'].nil? @SentenceComments = [] params['SentenceComments'].each do |i| sentencecom_tmp = SentenceCom.new sentencecom_tmp.deserialize(i) @SentenceComments << sentencecom_tmp end end end |