Class: TencentCloud::Mrs::V20200910::ChiefComplaintBlock
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::ChiefComplaintBlock
- Defined in:
- lib/v20200910/models.rb
Overview
主诉
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, src = nil, value = nil, detail = nil) ⇒ ChiefComplaintBlock
constructor
A new instance of ChiefComplaintBlock.
Constructor Details
#initialize(name = nil, src = nil, value = nil, detail = nil) ⇒ ChiefComplaintBlock
Returns a new instance of ChiefComplaintBlock.
2004 2005 2006 2007 2008 2009 |
# File 'lib/v20200910/models.rb', line 2004 def initialize(name=nil, src=nil, value=nil, detail=nil) @Name = name @Src = src @Value = value @Detail = detail end |
Instance Attribute Details
#Detail ⇒ Object
2002 2003 2004 |
# File 'lib/v20200910/models.rb', line 2002 def Detail @Detail end |
#Name ⇒ Object
2002 2003 2004 |
# File 'lib/v20200910/models.rb', line 2002 def Name @Name end |
#Src ⇒ Object
2002 2003 2004 |
# File 'lib/v20200910/models.rb', line 2002 def Src @Src end |
#Value ⇒ Object
2002 2003 2004 |
# File 'lib/v20200910/models.rb', line 2002 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 |
# File 'lib/v20200910/models.rb', line 2011 def deserialize(params) @Name = params['Name'] @Src = params['Src'] @Value = params['Value'] unless params['Detail'].nil? @Detail = [] params['Detail'].each do |i| chiefcomplaintdetailblock_tmp = ChiefComplaintDetailBlock.new chiefcomplaintdetailblock_tmp.deserialize(i) @Detail << chiefcomplaintdetailblock_tmp end end end |