Class: TencentCloud::Ecc::V20181213::CorrectData

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181213/models.rb

Overview

批改的结果

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CommentObject

Parameters:

  • Score:

    总得分

  • ScoreCat:

    各项得分详情

  • Comment:

    综合评价

  • SentenceComments:

    句子点评



123
124
125
# File 'lib/v20181213/models.rb', line 123

def Comment
  @Comment
end

#ScoreObject

Parameters:

  • Score:

    总得分

  • ScoreCat:

    各项得分详情

  • Comment:

    综合评价

  • SentenceComments:

    句子点评



123
124
125
# File 'lib/v20181213/models.rb', line 123

def Score
  @Score
end

#ScoreCatObject

Parameters:

  • Score:

    总得分

  • ScoreCat:

    各项得分详情

  • Comment:

    综合评价

  • SentenceComments:

    句子点评



123
124
125
# File 'lib/v20181213/models.rb', line 123

def ScoreCat
  @ScoreCat
end

#SentenceCommentsObject

Parameters:

  • Score:

    总得分

  • ScoreCat:

    各项得分详情

  • Comment:

    综合评价

  • SentenceComments:

    句子点评



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