Class: TencentCloud::Sslpod::V20190605::ChartHistogram
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Sslpod::V20190605::ChartHistogram
- Defined in:
- lib/v20190605/models.rb
Overview
直方图数据结构
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, children = nil) ⇒ ChartHistogram
constructor
A new instance of ChartHistogram.
Constructor Details
#initialize(name = nil, children = nil) ⇒ ChartHistogram
Returns a new instance of ChartHistogram.
86 87 88 89 |
# File 'lib/v20190605/models.rb', line 86 def initialize(name=nil, children=nil) @Name = name @Children = children end |
Instance Attribute Details
#Children ⇒ Object
84 85 86 |
# File 'lib/v20190605/models.rb', line 84 def Children @Children end |
#Name ⇒ Object
84 85 86 |
# File 'lib/v20190605/models.rb', line 84 def Name @Name end |
Instance Method Details
#deserialize(params) ⇒ Object
91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/v20190605/models.rb', line 91 def deserialize(params) @Name = params['Name'] unless params['Children'].nil? @Children = [] params['Children'].each do |i| chartnamevalue_tmp = ChartNameValue.new chartnamevalue_tmp.deserialize(i) @Children << chartnamevalue_tmp end end end |