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.



21428
21429
21430
21431
# File 'lib/v20210820/models.rb', line 21428

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

Instance Attribute Details

#ItemsObject

Parameters:

  • TotalCount:

    记录数

  • Items:

    模版列表



21426
21427
21428
# File 'lib/v20210820/models.rb', line 21426

def Items
  @Items
end

#TotalCountObject

Parameters:

  • TotalCount:

    记录数

  • Items:

    模版列表



21426
21427
21428
# File 'lib/v20210820/models.rb', line 21426

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
# File 'lib/v20210820/models.rb', line 21433

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