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.
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
#Attrs ⇒ Object
10158 10159 10160 |
# File 'lib/v20200910/models.rb', line 10158 def Attrs @Attrs end |
#Coords ⇒ Object
10158 10159 10160 |
# File 'lib/v20200910/models.rb', line 10158 def Coords @Coords end |
#Grade ⇒ Object
10158 10159 10160 |
# File 'lib/v20200910/models.rb', line 10158 def Grade @Grade end |
#Index ⇒ Object
10158 10159 10160 |
# File 'lib/v20200910/models.rb', line 10158 def Index @Index end |
#Part ⇒ Object
10158 10159 10160 |
# File 'lib/v20200910/models.rb', line 10158 def Part @Part end |
#Src ⇒ Object
10158 10159 10160 |
# File 'lib/v20200910/models.rb', line 10158 def Src @Src end |
#Symptom ⇒ Object
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 |