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.



3774
3775
3776
3777
3778
3779
# File 'lib/v20200910/models.rb', line 3774

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:

    原文



3772
3773
3774
# File 'lib/v20200910/models.rb', line 3772

def Name
  @Name
end

#NumsObject

Parameters:

  • Name:

    名称

  • Value:

  • Nums:

    数值

  • Src:

    原文



3772
3773
3774
# File 'lib/v20200910/models.rb', line 3772

def Nums
  @Nums
end

#SrcObject

Parameters:

  • Name:

    名称

  • Value:

  • Nums:

    数值

  • Src:

    原文



3772
3773
3774
# File 'lib/v20200910/models.rb', line 3772

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    名称

  • Value:

  • Nums:

    数值

  • Src:

    原文



3772
3773
3774
# File 'lib/v20200910/models.rb', line 3772

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
# File 'lib/v20200910/models.rb', line 3781

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