Class: TencentCloud::Tbm::V20180129::DescribeBrandCommentCountResponse

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

Overview

DescribeBrandCommentCount返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commentset = nil, requestid = nil) ⇒ DescribeBrandCommentCountResponse

Returns a new instance of DescribeBrandCommentCountResponse.



208
209
210
211
# File 'lib/v20180129/models.rb', line 208

def initialize(commentset=nil, requestid=nil)
  @CommentSet = commentset
  @RequestId = requestid
end

Instance Attribute Details

#CommentSetObject

Parameters:

  • CommentSet:

    按天统计好评/差评数

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



206
207
208
# File 'lib/v20180129/models.rb', line 206

def CommentSet
  @CommentSet
end

#RequestIdObject

Parameters:

  • CommentSet:

    按天统计好评/差评数

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



206
207
208
# File 'lib/v20180129/models.rb', line 206

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



213
214
215
216
217
218
219
220
221
222
223
# File 'lib/v20180129/models.rb', line 213

def deserialize(params)
  unless params['CommentSet'].nil?
    @CommentSet = []
    params['CommentSet'].each do |i|
      comment_tmp = Comment.new
      comment_tmp.deserialize(i)
      @CommentSet << comment_tmp
    end
  end
  @RequestId = params['RequestId']
end