Class: TencentCloud::Mrs::V20200910::PathologicalDiagnosisBlock

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

Overview

病理诊断

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, src = nil, detail = nil, value = nil) ⇒ PathologicalDiagnosisBlock

Returns a new instance of PathologicalDiagnosisBlock.



8217
8218
8219
8220
8221
8222
# File 'lib/v20200910/models.rb', line 8217

def initialize(name=nil, src=nil, detail=nil, value=nil)
  @Name = name
  @Src = src
  @Detail = detail
  @Value = value
end

Instance Attribute Details

#DetailObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • Detail:

    病理详细

  • Value:



8215
8216
8217
# File 'lib/v20200910/models.rb', line 8215

def Detail
  @Detail
end

#NameObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • Detail:

    病理详细

  • Value:



8215
8216
8217
# File 'lib/v20200910/models.rb', line 8215

def Name
  @Name
end

#SrcObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • Detail:

    病理详细

  • Value:



8215
8216
8217
# File 'lib/v20200910/models.rb', line 8215

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • Detail:

    病理详细

  • Value:



8215
8216
8217
# File 'lib/v20200910/models.rb', line 8215

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
# File 'lib/v20200910/models.rb', line 8224

def deserialize(params)
  @Name = params['Name']
  @Src = params['Src']
  unless params['Detail'].nil?
    @Detail = []
    params['Detail'].each do |i|
      pathologicaldiagnosisdetailblock_tmp = PathologicalDiagnosisDetailBlock.new
      pathologicaldiagnosisdetailblock_tmp.deserialize(i)
      @Detail << pathologicaldiagnosisdetailblock_tmp
    end
  end
  @Value = params['Value']
end