Class: TencentCloud::Waf::V20180125::CCRuleData
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::CCRuleData
- Defined in:
- lib/v20180125/models.rb
Overview
数据封装
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(res = nil, totalcount = nil) ⇒ CCRuleData
constructor
A new instance of CCRuleData.
Constructor Details
#initialize(res = nil, totalcount = nil) ⇒ CCRuleData
Returns a new instance of CCRuleData.
2718 2719 2720 2721 |
# File 'lib/v20180125/models.rb', line 2718 def initialize(res=nil, totalcount=nil) @Res = res @TotalCount = totalcount end |
Instance Attribute Details
#Res ⇒ Object
2716 2717 2718 |
# File 'lib/v20180125/models.rb', line 2716 def Res @Res end |
#TotalCount ⇒ Object
2716 2717 2718 |
# File 'lib/v20180125/models.rb', line 2716 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 |
# File 'lib/v20180125/models.rb', line 2723 def deserialize(params) unless params['Res'].nil? @Res = [] params['Res'].each do |i| ccruleitem_tmp = CCRuleItem.new ccruleitem_tmp.deserialize(i) @Res << ccruleitem_tmp end end @TotalCount = params['TotalCount'] end |