Class: TencentCloud::Wedata::V20210820::RuleTemplatePage

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

Overview

RuleTemplatePage 结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, items = nil) ⇒ RuleTemplatePage

Returns a new instance of RuleTemplatePage.



32325
32326
32327
32328
# File 'lib/v20210820/models.rb', line 32325

def initialize(totalcount=nil, items=nil)
  @TotalCount = totalcount
  @Items = items
end

Instance Attribute Details

#ItemsObject

Parameters:

  • TotalCount:

    记录数

  • Items:

    模版列表



32323
32324
32325
# File 'lib/v20210820/models.rb', line 32323

def Items
  @Items
end

#TotalCountObject

Parameters:

  • TotalCount:

    记录数

  • Items:

    模版列表



32323
32324
32325
# File 'lib/v20210820/models.rb', line 32323

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
# File 'lib/v20210820/models.rb', line 32330

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      ruletemplate_tmp = RuleTemplate.new
      ruletemplate_tmp.deserialize(i)
      @Items << ruletemplate_tmp
    end
  end
end