Class: TencentCloud::Tbm::V20180129::DescribeBrandSocialOpinionResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tbm::V20180129::DescribeBrandSocialOpinionResponse
- Defined in:
- lib/v20180129/models.rb
Overview
DescribeBrandSocialOpinion返回参数结构体
Instance Attribute Summary collapse
- #AdverseCount ⇒ Object
- #ArticleCount ⇒ Object
- #ArticleSet ⇒ Object
- #FromCount ⇒ Object
- #RequestId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(articlecount = nil, fromcount = nil, adversecount = nil, articleset = nil, requestid = nil) ⇒ DescribeBrandSocialOpinionResponse
constructor
A new instance of DescribeBrandSocialOpinionResponse.
Constructor Details
#initialize(articlecount = nil, fromcount = nil, adversecount = nil, articleset = nil, requestid = nil) ⇒ DescribeBrandSocialOpinionResponse
Returns a new instance of DescribeBrandSocialOpinionResponse.
513 514 515 516 517 518 519 |
# File 'lib/v20180129/models.rb', line 513 def initialize(articlecount=nil, fromcount=nil, adversecount=nil, articleset=nil, requestid=nil) @ArticleCount = articlecount @FromCount = fromcount @AdverseCount = adversecount @ArticleSet = articleset @RequestId = requestid end |
Instance Attribute Details
#AdverseCount ⇒ Object
511 512 513 |
# File 'lib/v20180129/models.rb', line 511 def AdverseCount @AdverseCount end |
#ArticleCount ⇒ Object
511 512 513 |
# File 'lib/v20180129/models.rb', line 511 def ArticleCount @ArticleCount end |
#ArticleSet ⇒ Object
511 512 513 |
# File 'lib/v20180129/models.rb', line 511 def ArticleSet @ArticleSet end |
#FromCount ⇒ Object
511 512 513 |
# File 'lib/v20180129/models.rb', line 511 def FromCount @FromCount end |
#RequestId ⇒ Object
511 512 513 |
# File 'lib/v20180129/models.rb', line 511 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
521 522 523 524 525 526 527 528 529 530 531 532 533 534 |
# File 'lib/v20180129/models.rb', line 521 def deserialize(params) @ArticleCount = params['ArticleCount'] @FromCount = params['FromCount'] @AdverseCount = params['AdverseCount'] unless params['ArticleSet'].nil? @ArticleSet = [] params['ArticleSet'].each do |i| brandreportarticle_tmp = BrandReportArticle.new brandreportarticle_tmp.deserialize(i) @ArticleSet << brandreportarticle_tmp end end @RequestId = params['RequestId'] end |