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.



21712
21713
21714
21715
# File 'lib/v20210820/models.rb', line 21712

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

Instance Attribute Details

#ItemsObject

Parameters:

  • TotalCount:

    记录数

  • Items:

    模版列表



21710
21711
21712
# File 'lib/v20210820/models.rb', line 21710

def Items
  @Items
end

#TotalCountObject

Parameters:

  • TotalCount:

    记录数

  • Items:

    模版列表



21710
21711
21712
# File 'lib/v20210820/models.rb', line 21710

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
# File 'lib/v20210820/models.rb', line 21717

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