Class: TencentCloud::Mrs::V20200910::FieldInfo

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, value = nil, nums = nil, src = nil) ⇒ FieldInfo

Returns a new instance of FieldInfo.



3759
3760
3761
3762
3763
3764
# File 'lib/v20200910/models.rb', line 3759

def initialize(name=nil, value=nil, nums=nil, src=nil)
  @Name = name
  @Value = value
  @Nums = nums
  @Src = src
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    名称

  • Value:

  • Nums:

    数值

  • Src:

    原文



3757
3758
3759
# File 'lib/v20200910/models.rb', line 3757

def Name
  @Name
end

#NumsObject

Parameters:

  • Name:

    名称

  • Value:

  • Nums:

    数值

  • Src:

    原文



3757
3758
3759
# File 'lib/v20200910/models.rb', line 3757

def Nums
  @Nums
end

#SrcObject

Parameters:

  • Name:

    名称

  • Value:

  • Nums:

    数值

  • Src:

    原文



3757
3758
3759
# File 'lib/v20200910/models.rb', line 3757

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    名称

  • Value:

  • Nums:

    数值

  • Src:

    原文



3757
3758
3759
# File 'lib/v20200910/models.rb', line 3757

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
# File 'lib/v20200910/models.rb', line 3766

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