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.



9528
9529
9530
9531
9532
# File 'lib/v20200910/models.rb', line 9528

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

Instance Attribute Details

#CoordsObject

Parameters:

  • Symptom:

    症状

  • Text:

    文本

  • Coords:

    坐标



9526
9527
9528
# File 'lib/v20200910/models.rb', line 9526

def Coords
  @Coords
end

#SymptomObject

Parameters:

  • Symptom:

    症状

  • Text:

    文本

  • Coords:

    坐标



9526
9527
9528
# File 'lib/v20200910/models.rb', line 9526

def Symptom
  @Symptom
end

#TextObject

Parameters:

  • Symptom:

    症状

  • Text:

    文本

  • Coords:

    坐标



9526
9527
9528
# File 'lib/v20200910/models.rb', line 9526

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
# File 'lib/v20200910/models.rb', line 9534

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