Class: TencentCloud::Trp::V20210515::ChainValue

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

Overview

上链数据 key-value

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label = nil, type = nil, value = nil) ⇒ ChainValue

Returns a new instance of ChainValue.



183
184
185
186
187
# File 'lib/v20210515/models.rb', line 183

def initialize(label=nil, type=nil, value=nil)
  @Label = label
  @Type = type
  @Value = value
end

Instance Attribute Details

#LabelObject

Parameters:

  • Label:

    标题名字

  • Type:

    类型,文字:“text”,图片:“image”

  • Value:

    值,文字类型:“abc”,图片类型:“”/images/img.png“



181
182
183
# File 'lib/v20210515/models.rb', line 181

def Label
  @Label
end

#TypeObject

Parameters:

  • Label:

    标题名字

  • Type:

    类型,文字:“text”,图片:“image”

  • Value:

    值,文字类型:“abc”,图片类型:“”/images/img.png“



181
182
183
# File 'lib/v20210515/models.rb', line 181

def Type
  @Type
end

#ValueObject

Parameters:

  • Label:

    标题名字

  • Type:

    类型,文字:“text”,图片:“image”

  • Value:

    值,文字类型:“abc”,图片类型:“”/images/img.png“



181
182
183
# File 'lib/v20210515/models.rb', line 181

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



189
190
191
192
193
# File 'lib/v20210515/models.rb', line 189

def deserialize(params)
  @Label = params['Label']
  @Type = params['Type']
  @Value = params['Value']
end