Class: TencentCloud::Mrs::V20200910::DiagCert
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::DiagCert
- Defined in:
- lib/v20200910/models.rb
Overview
诊断证明
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(advice = nil, diagnosis = nil, page = nil) ⇒ DiagCert
constructor
A new instance of DiagCert.
Constructor Details
#initialize(advice = nil, diagnosis = nil, page = nil) ⇒ DiagCert
Returns a new instance of DiagCert.
2463 2464 2465 2466 2467 |
# File 'lib/v20200910/models.rb', line 2463 def initialize(advice=nil, diagnosis=nil, page=nil) @Advice = advice @Diagnosis = diagnosis @Page = page end |
Instance Attribute Details
#Advice ⇒ Object
2461 2462 2463 |
# File 'lib/v20200910/models.rb', line 2461 def Advice @Advice end |
#Diagnosis ⇒ Object
2461 2462 2463 |
# File 'lib/v20200910/models.rb', line 2461 def Diagnosis @Diagnosis end |
#Page ⇒ Object
2461 2462 2463 |
# File 'lib/v20200910/models.rb', line 2461 def Page @Page end |
Instance Method Details
#deserialize(params) ⇒ Object
2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 |
# File 'lib/v20200910/models.rb', line 2469 def deserialize(params) unless params['Advice'].nil? @Advice = Advice.new @Advice.deserialize(params['Advice']) end unless params['Diagnosis'].nil? @Diagnosis = [] params['Diagnosis'].each do |i| diagcertitem_tmp = DiagCertItem.new diagcertitem_tmp.deserialize(i) @Diagnosis << diagcertitem_tmp end end @Page = params['Page'] end |