Class: TencentCloud::Ssa::V20180608::AggregationObj
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ssa::V20180608::AggregationObj
- Defined in:
- lib/v20180608/models.rb
Overview
聚合类型
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, bucket = nil) ⇒ AggregationObj
constructor
A new instance of AggregationObj.
Constructor Details
#initialize(type = nil, bucket = nil) ⇒ AggregationObj
Returns a new instance of AggregationObj.
29 30 31 32 |
# File 'lib/v20180608/models.rb', line 29 def initialize(type=nil, bucket=nil) @Type = type @Bucket = bucket end |
Instance Attribute Details
#Bucket ⇒ Object
27 28 29 |
# File 'lib/v20180608/models.rb', line 27 def Bucket @Bucket end |
#Type ⇒ Object
27 28 29 |
# File 'lib/v20180608/models.rb', line 27 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/v20180608/models.rb', line 34 def deserialize(params) @Type = params['Type'] unless params['Bucket'].nil? @Bucket = [] params['Bucket'].each do |i| bucket_tmp = Bucket.new bucket_tmp.deserialize(i) @Bucket << bucket_tmp end end end |