Class: TencentCloud::Tdmq::V20200217::ConsumerLogs

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200217/models.rb

Overview

消费信息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ConsumerLogSetsObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    记录数。

  • ConsumerLogSets:

    消费日志。



1006
1007
1008
# File 'lib/v20200217/models.rb', line 1006

def ConsumerLogSets
  @ConsumerLogSets
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    记录数。

  • ConsumerLogSets:

    消费日志。



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