Class: TencentCloud::Mrs::V20200910::SymptomInfo

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

Overview

病症描述信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grade = nil, part = nil, index = nil, symptom = nil, attrs = nil, src = nil, coords = nil) ⇒ SymptomInfo

Returns a new instance of SymptomInfo.



10160
10161
10162
10163
10164
10165
10166
10167
10168
# File 'lib/v20200910/models.rb', line 10160

def initialize(grade=nil, part=nil, index=nil, symptom=nil, attrs=nil, src=nil, coords=nil)
  @Grade = grade
  @Part = part
  @Index = index
  @Symptom = symptom
  @Attrs = attrs
  @Src = src
  @Coords = coords
end

Instance Attribute Details

#AttrsObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10158
10159
10160
# File 'lib/v20200910/models.rb', line 10158

def Attrs
  @Attrs
end

#CoordsObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10158
10159
10160
# File 'lib/v20200910/models.rb', line 10158

def Coords
  @Coords
end

#GradeObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10158
10159
10160
# File 'lib/v20200910/models.rb', line 10158

def Grade
  @Grade
end

#IndexObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10158
10159
10160
# File 'lib/v20200910/models.rb', line 10158

def Index
  @Index
end

#PartObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10158
10159
10160
# File 'lib/v20200910/models.rb', line 10158

def Part
  @Part
end

#SrcObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10158
10159
10160
# File 'lib/v20200910/models.rb', line 10158

def Src
  @Src
end

#SymptomObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10158
10159
10160
# File 'lib/v20200910/models.rb', line 10158

def Symptom
  @Symptom
end

Instance Method Details

#deserialize(params) ⇒ Object



10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
# File 'lib/v20200910/models.rb', line 10170

def deserialize(params)
  unless params['Grade'].nil?
    @Grade = BlockInfo.new
    @Grade.deserialize(params['Grade'])
  end
  unless params['Part'].nil?
    @Part = Part.new
    @Part.deserialize(params['Part'])
  end
  @Index = params['Index']
  unless params['Symptom'].nil?
    @Symptom = BlockInfo.new
    @Symptom.deserialize(params['Symptom'])
  end
  unless params['Attrs'].nil?
    @Attrs = []
    params['Attrs'].each do |i|
      blockinfo_tmp = BlockInfo.new
      blockinfo_tmp.deserialize(i)
      @Attrs << blockinfo_tmp
    end
  end
  @Src = params['Src']
  unless params['Coords'].nil?
    @Coords = []
    params['Coords'].each do |i|
      coord_tmp = Coord.new
      coord_tmp.deserialize(i)
      @Coords << coord_tmp
    end
  end
end