Class: TencentCloud::Mrs::V20200910::RelativeHistoryBlock

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, detail = nil, src = nil, value = nil) ⇒ RelativeHistoryBlock

Returns a new instance of RelativeHistoryBlock.



9045
9046
9047
9048
9049
9050
# File 'lib/v20200910/models.rb', line 9045

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

Instance Attribute Details

#DetailObject

Parameters:

  • Name:

    名称

  • Detail:

    成员列表

  • Src:

    原文

  • Value:

    对外输出值



9043
9044
9045
# File 'lib/v20200910/models.rb', line 9043

def Detail
  @Detail
end

#NameObject

Parameters:

  • Name:

    名称

  • Detail:

    成员列表

  • Src:

    原文

  • Value:

    对外输出值



9043
9044
9045
# File 'lib/v20200910/models.rb', line 9043

def Name
  @Name
end

#SrcObject

Parameters:

  • Name:

    名称

  • Detail:

    成员列表

  • Src:

    原文

  • Value:

    对外输出值



9043
9044
9045
# File 'lib/v20200910/models.rb', line 9043

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    名称

  • Detail:

    成员列表

  • Src:

    原文

  • Value:

    对外输出值



9043
9044
9045
# File 'lib/v20200910/models.rb', line 9043

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
# File 'lib/v20200910/models.rb', line 9052

def deserialize(params)
  @Name = params['Name']
  unless params['Detail'].nil?
    @Detail = []
    params['Detail'].each do |i|
      relativehistorydetailblock_tmp = RelativeHistoryDetailBlock.new
      relativehistorydetailblock_tmp.deserialize(i)
      @Detail << relativehistorydetailblock_tmp
    end
  end
  @Src = params['Src']
  @Value = params['Value']
end