Class: TencentCloud::Mrs::V20200910::DrugListBlock
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::DrugListBlock
- Defined in:
- lib/v20200910/models.rb
Overview
药物史
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(commonname = nil, tradename = nil, dosage = nil, value = nil) ⇒ DrugListBlock
constructor
A new instance of DrugListBlock.
Constructor Details
#initialize(commonname = nil, tradename = nil, dosage = nil, value = nil) ⇒ DrugListBlock
Returns a new instance of DrugListBlock.
2908 2909 2910 2911 2912 2913 |
# File 'lib/v20200910/models.rb', line 2908 def initialize(commonname=nil, tradename=nil, dosage=nil, value=nil) @CommonName = commonname @TradeName = tradename @Dosage = dosage @Value = value end |
Instance Attribute Details
#CommonName ⇒ Object
2906 2907 2908 |
# File 'lib/v20200910/models.rb', line 2906 def CommonName @CommonName end |
#Dosage ⇒ Object
2906 2907 2908 |
# File 'lib/v20200910/models.rb', line 2906 def Dosage @Dosage end |
#TradeName ⇒ Object
2906 2907 2908 |
# File 'lib/v20200910/models.rb', line 2906 def TradeName @TradeName end |
#Value ⇒ Object
2906 2907 2908 |
# File 'lib/v20200910/models.rb', line 2906 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
2915 2916 2917 2918 2919 2920 2921 2922 2923 |
# File 'lib/v20200910/models.rb', line 2915 def deserialize(params) @CommonName = params['CommonName'] @TradeName = params['TradeName'] unless params['Dosage'].nil? @Dosage = DosageBlock.new @Dosage.deserialize(params['Dosage']) end @Value = params['Value'] end |