Class: TencentCloud::Tbm::V20180129::Comment

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

Overview

用户好评差评个数信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date = nil, negcommentcount = nil, poscommentcount = nil) ⇒ Comment

Returns a new instance of Comment.



122
123
124
125
126
# File 'lib/v20180129/models.rb', line 122

def initialize(date=nil, negcommentcount=nil, poscommentcount=nil)
  @Date = date
  @NegCommentCount = negcommentcount
  @PosCommentCount = poscommentcount
end

Instance Attribute Details

#DateObject

Parameters:

  • Date:

    评论的日期

  • NegCommentCount:

    差评的个数

  • PosCommentCount:

    好评的个数



120
121
122
# File 'lib/v20180129/models.rb', line 120

def Date
  @Date
end

#NegCommentCountObject

Parameters:

  • Date:

    评论的日期

  • NegCommentCount:

    差评的个数

  • PosCommentCount:

    好评的个数



120
121
122
# File 'lib/v20180129/models.rb', line 120

def NegCommentCount
  @NegCommentCount
end

#PosCommentCountObject

Parameters:

  • Date:

    评论的日期

  • NegCommentCount:

    差评的个数

  • PosCommentCount:

    好评的个数



120
121
122
# File 'lib/v20180129/models.rb', line 120

def PosCommentCount
  @PosCommentCount
end

Instance Method Details

#deserialize(params) ⇒ Object



128
129
130
131
132
# File 'lib/v20180129/models.rb', line 128

def deserialize(params)
  @Date = params['Date']
  @NegCommentCount = params['NegCommentCount']
  @PosCommentCount = params['PosCommentCount']
end