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

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

#DetailObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • Value:

    单位输出值

  • Detail:

    主诉详情



2002
2003
2004
# File 'lib/v20200910/models.rb', line 2002

def Detail
  @Detail
end

#NameObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • Value:

    单位输出值

  • Detail:

    主诉详情



2002
2003
2004
# File 'lib/v20200910/models.rb', line 2002

def Name
  @Name
end

#SrcObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • Value:

    单位输出值

  • Detail:

    主诉详情



2002
2003
2004
# File 'lib/v20200910/models.rb', line 2002

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • Value:

    单位输出值

  • Detail:

    主诉详情



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