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.



10133
10134
10135
10136
10137
10138
10139
10140
10141
# File 'lib/v20200910/models.rb', line 10133

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:

    坐标



10131
10132
10133
# File 'lib/v20200910/models.rb', line 10131

def Attrs
  @Attrs
end

#CoordsObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10131
10132
10133
# File 'lib/v20200910/models.rb', line 10131

def Coords
  @Coords
end

#GradeObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10131
10132
10133
# File 'lib/v20200910/models.rb', line 10131

def Grade
  @Grade
end

#IndexObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10131
10132
10133
# File 'lib/v20200910/models.rb', line 10131

def Index
  @Index
end

#PartObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10131
10132
10133
# File 'lib/v20200910/models.rb', line 10131

def Part
  @Part
end

#SrcObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10131
10132
10133
# File 'lib/v20200910/models.rb', line 10131

def Src
  @Src
end

#SymptomObject

Parameters:

  • Grade:

    等级

  • Part:

    部位

  • Index:

    原文位置

  • Symptom:

    病变

  • Attrs:

    属性

  • Src:

    原文

  • Coords:

    坐标



10131
10132
10133
# File 'lib/v20200910/models.rb', line 10131

def Symptom
  @Symptom
end

Instance Method Details

#deserialize(params) ⇒ Object



10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
# File 'lib/v20200910/models.rb', line 10143

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