Class: TencentCloud::Mrs::V20200910::SymptomInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::SymptomInfo
- Defined in:
- lib/v20200910/models.rb
Overview
病症描述信息
Instance Attribute Summary collapse
- #Attrs ⇒ Object
- #Coords ⇒ Object
- #Grade ⇒ Object
- #Index ⇒ Object
- #Part ⇒ Object
- #Src ⇒ Object
- #Symptom ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(grade = nil, part = nil, index = nil, symptom = nil, attrs = nil, src = nil, coords = nil) ⇒ SymptomInfo
constructor
A new instance of SymptomInfo.
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
#Attrs ⇒ Object
10131 10132 10133 |
# File 'lib/v20200910/models.rb', line 10131 def Attrs @Attrs end |
#Coords ⇒ Object
10131 10132 10133 |
# File 'lib/v20200910/models.rb', line 10131 def Coords @Coords end |
#Grade ⇒ Object
10131 10132 10133 |
# File 'lib/v20200910/models.rb', line 10131 def Grade @Grade end |
#Index ⇒ Object
10131 10132 10133 |
# File 'lib/v20200910/models.rb', line 10131 def Index @Index end |
#Part ⇒ Object
10131 10132 10133 |
# File 'lib/v20200910/models.rb', line 10131 def Part @Part end |
#Src ⇒ Object
10131 10132 10133 |
# File 'lib/v20200910/models.rb', line 10131 def Src @Src end |
#Symptom ⇒ Object
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 |