Class: TencentCloud::Cwp::V20180228::BaselineItemsCategory
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::BaselineItemsCategory
- Defined in:
- lib/v20180228/models.rb
Overview
基线检测项分类树状结构
Instance Attribute Summary collapse
- #CategoryCount ⇒ Object
- #CategoryLists ⇒ Object
- #ParentCategoryId ⇒ Object
- #ParentCategoryName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(parentcategoryid = nil, parentcategoryname = nil, categorycount = nil, categorylists = nil) ⇒ BaselineItemsCategory
constructor
A new instance of BaselineItemsCategory.
Constructor Details
#initialize(parentcategoryid = nil, parentcategoryname = nil, categorycount = nil, categorylists = nil) ⇒ BaselineItemsCategory
Returns a new instance of BaselineItemsCategory.
3490 3491 3492 3493 3494 3495 |
# File 'lib/v20180228/models.rb', line 3490 def initialize(parentcategoryid=nil, parentcategoryname=nil, categorycount=nil, categorylists=nil) @ParentCategoryId = parentcategoryid @ParentCategoryName = parentcategoryname @CategoryCount = categorycount @CategoryLists = categorylists end |
Instance Attribute Details
#CategoryCount ⇒ Object
3488 3489 3490 |
# File 'lib/v20180228/models.rb', line 3488 def CategoryCount @CategoryCount end |
#CategoryLists ⇒ Object
3488 3489 3490 |
# File 'lib/v20180228/models.rb', line 3488 def CategoryLists @CategoryLists end |
#ParentCategoryId ⇒ Object
3488 3489 3490 |
# File 'lib/v20180228/models.rb', line 3488 def ParentCategoryId @ParentCategoryId end |
#ParentCategoryName ⇒ Object
3488 3489 3490 |
# File 'lib/v20180228/models.rb', line 3488 def ParentCategoryName @ParentCategoryName end |
Instance Method Details
#deserialize(params) ⇒ Object
3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 |
# File 'lib/v20180228/models.rb', line 3497 def deserialize(params) @ParentCategoryId = params['ParentCategoryId'] @ParentCategoryName = params['ParentCategoryName'] @CategoryCount = params['CategoryCount'] unless params['CategoryLists'].nil? @CategoryLists = [] params['CategoryLists'].each do |i| baselinecategory_tmp = BaselineCategory.new baselinecategory_tmp.deserialize(i) @CategoryLists << baselinecategory_tmp end end end |