Class: TencentCloud::Mrs::V20200910::DrugHistoryBlock
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::DrugHistoryBlock
- Defined in:
- lib/v20200910/models.rb
Overview
药物史
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, src = nil, druglist = nil, value = nil) ⇒ DrugHistoryBlock
constructor
A new instance of DrugHistoryBlock.
Constructor Details
#initialize(name = nil, src = nil, druglist = nil, value = nil) ⇒ DrugHistoryBlock
Returns a new instance of DrugHistoryBlock.
2809 2810 2811 2812 2813 2814 |
# File 'lib/v20200910/models.rb', line 2809 def initialize(name=nil, src=nil, druglist=nil, value=nil) @Name = name @Src = src @DrugList = druglist @Value = value end |
Instance Attribute Details
#DrugList ⇒ Object
2807 2808 2809 |
# File 'lib/v20200910/models.rb', line 2807 def DrugList @DrugList end |
#Name ⇒ Object
2807 2808 2809 |
# File 'lib/v20200910/models.rb', line 2807 def Name @Name end |
#Src ⇒ Object
2807 2808 2809 |
# File 'lib/v20200910/models.rb', line 2807 def Src @Src end |
#Value ⇒ Object
2807 2808 2809 |
# File 'lib/v20200910/models.rb', line 2807 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 |
# File 'lib/v20200910/models.rb', line 2816 def deserialize(params) @Name = params['Name'] @Src = params['Src'] unless params['DrugList'].nil? @DrugList = [] params['DrugList'].each do |i| druglistblock_tmp = DrugListBlock.new druglistblock_tmp.deserialize(i) @DrugList << druglistblock_tmp end end @Value = params['Value'] end |