Class: TencentCloud::Mrs::V20200910::TableIndicators

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

Overview

检验报告结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(indicators = nil, sample = nil) ⇒ TableIndicators

Returns a new instance of TableIndicators.



10186
10187
10188
10189
# File 'lib/v20200910/models.rb', line 10186

def initialize(indicators=nil, sample=nil)
  @Indicators = indicators
  @Sample = sample
end

Instance Attribute Details

#IndicatorsObject

Parameters:

  • Indicators:

    项目列表

  • Sample:

    采样标本



10184
10185
10186
# File 'lib/v20200910/models.rb', line 10184

def Indicators
  @Indicators
end

#SampleObject

Parameters:

  • Indicators:

    项目列表

  • Sample:

    采样标本



10184
10185
10186
# File 'lib/v20200910/models.rb', line 10184

def Sample
  @Sample
end

Instance Method Details

#deserialize(params) ⇒ Object



10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
# File 'lib/v20200910/models.rb', line 10191

def deserialize(params)
  unless params['Indicators'].nil?
    @Indicators = []
    params['Indicators'].each do |i|
      indicatoritemv2_tmp = IndicatorItemV2.new
      indicatoritemv2_tmp.deserialize(i)
      @Indicators << indicatoritemv2_tmp
    end
  end
  unless params['Sample'].nil?
    @Sample = BaseItem.new
    @Sample.deserialize(params['Sample'])
  end
end