Class: TencentCloud::Tdmq::V20200217::ConsumerLogs
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::ConsumerLogs
- Defined in:
- lib/v20200217/models.rb
Overview
消费信息
Instance Attribute Summary collapse
-
#ConsumerLogSets ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, consumerlogsets = nil) ⇒ ConsumerLogs
constructor
A new instance of ConsumerLogs.
Constructor Details
#initialize(totalcount = nil, consumerlogsets = nil) ⇒ ConsumerLogs
Returns a new instance of ConsumerLogs.
1008 1009 1010 1011 |
# File 'lib/v20200217/models.rb', line 1008 def initialize(totalcount=nil, consumerlogsets=nil) @TotalCount = totalcount @ConsumerLogSets = consumerlogsets end |
Instance Attribute Details
#ConsumerLogSets ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
1006 1007 1008 |
# File 'lib/v20200217/models.rb', line 1006 def ConsumerLogSets @ConsumerLogSets end |
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
1006 1007 1008 |
# File 'lib/v20200217/models.rb', line 1006 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 |
# File 'lib/v20200217/models.rb', line 1013 def deserialize(params) @TotalCount = params['TotalCount'] unless params['ConsumerLogSets'].nil? @ConsumerLogSets = [] params['ConsumerLogSets'].each do |i| consumerlog_tmp = ConsumerLog.new consumerlog_tmp.deserialize(i) @ConsumerLogSets << consumerlog_tmp end end end |