Class: TencentCloud::Mrs::V20200910::ChiefComplaintBlock

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200910/models.rb

Overview

主诉

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, src = nil, value = nil, detail = nil) ⇒ ChiefComplaintBlock



2015
2016
2017
2018
2019
2020
# File 'lib/v20200910/models.rb', line 2015

def initialize(name=nil, src=nil, value=nil, detail=nil)
  @Name = name
  @Src = src
  @Value = value
  @Detail = detail
end

Instance Attribute Details

#DetailObject



2013
2014
2015
# File 'lib/v20200910/models.rb', line 2013

def Detail
  @Detail
end

#NameObject



2013
2014
2015
# File 'lib/v20200910/models.rb', line 2013

def Name
  @Name
end

#SrcObject



2013
2014
2015
# File 'lib/v20200910/models.rb', line 2013

def Src
  @Src
end

#ValueObject



2013
2014
2015
# File 'lib/v20200910/models.rb', line 2013

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
# File 'lib/v20200910/models.rb', line 2022

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