Class: TencentCloud::Mrs::V20200910::Summary

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

Overview

结论

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symptom = nil, text = nil, coords = nil) ⇒ Summary

Returns a new instance of Summary.



9555
9556
9557
9558
9559
# File 'lib/v20200910/models.rb', line 9555

def initialize(symptom=nil, text=nil, coords=nil)
  @Symptom = symptom
  @Text = text
  @Coords = coords
end

Instance Attribute Details

#CoordsObject

Parameters:

  • Symptom:

    症状

  • Text:

    文本

  • Coords:

    坐标



9553
9554
9555
# File 'lib/v20200910/models.rb', line 9553

def Coords
  @Coords
end

#SymptomObject

Parameters:

  • Symptom:

    症状

  • Text:

    文本

  • Coords:

    坐标



9553
9554
9555
# File 'lib/v20200910/models.rb', line 9553

def Symptom
  @Symptom
end

#TextObject

Parameters:

  • Symptom:

    症状

  • Text:

    文本

  • Coords:

    坐标



9553
9554
9555
# File 'lib/v20200910/models.rb', line 9553

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
# File 'lib/v20200910/models.rb', line 9561

def deserialize(params)
  unless params['Symptom'].nil?
    @Symptom = []
    params['Symptom'].each do |i|
      symptominfo_tmp = SymptomInfo.new
      symptominfo_tmp.deserialize(i)
      @Symptom << symptominfo_tmp
    end
  end
  @Text = params['Text']
  unless params['Coords'].nil?
    @Coords = []
    params['Coords'].each do |i|
      coord_tmp = Coord.new
      coord_tmp.deserialize(i)
      @Coords << coord_tmp
    end
  end
end