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.
2893 2894 2895 2896 2897 2898 |
# File 'lib/v20200910/models.rb', line 2893 def initialize(commonname=nil, tradename=nil, dosage=nil, value=nil) @CommonName = commonname @TradeName = tradename @Dosage = dosage @Value = value end |
Instance Attribute Details
#CommonName ⇒ Object
2891 2892 2893 |
# File 'lib/v20200910/models.rb', line 2891 def CommonName @CommonName end |
#Dosage ⇒ Object
2891 2892 2893 |
# File 'lib/v20200910/models.rb', line 2891 def Dosage @Dosage end |
#TradeName ⇒ Object
2891 2892 2893 |
# File 'lib/v20200910/models.rb', line 2891 def TradeName @TradeName end |
#Value ⇒ Object
2891 2892 2893 |
# File 'lib/v20200910/models.rb', line 2891 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
2900 2901 2902 2903 2904 2905 2906 2907 2908 |
# File 'lib/v20200910/models.rb', line 2900 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 |