Class: TencentCloud::Cdn::V20180606::TopDataMore

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

Overview

排序类型数据结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource = nil, detaildata = nil) ⇒ TopDataMore

Returns a new instance of TopDataMore.



13305
13306
13307
13308
# File 'lib/v20180606/models.rb', line 13305

def initialize(resource=nil, detaildata=nil)
  @Resource = resource
  @DetailData = detaildata
end

Instance Attribute Details

#DetailDataObject

Parameters:

  • Resource:

    资源名称,根据查询条件不同分为以下几类:

  • DetailData:

    排序结果详情



13303
13304
13305
# File 'lib/v20180606/models.rb', line 13303

def DetailData
  @DetailData
end

#ResourceObject

Parameters:

  • Resource:

    资源名称,根据查询条件不同分为以下几类:

  • DetailData:

    排序结果详情



13303
13304
13305
# File 'lib/v20180606/models.rb', line 13303

def Resource
  @Resource
end

Instance Method Details

#deserialize(params) ⇒ Object



13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
# File 'lib/v20180606/models.rb', line 13310

def deserialize(params)
  @Resource = params['Resource']
  unless params['DetailData'].nil?
    @DetailData = []
    params['DetailData'].each do |i|
      topdetaildatamore_tmp = TopDetailDataMore.new
      topdetaildatamore_tmp.deserialize(i)
      @DetailData << topdetaildatamore_tmp
    end
  end
end