Class: TencentCloud::Tbm::V20180129::StarPortrait

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

Overview

明星喜好画像元素

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, percent = nil) ⇒ StarPortrait

Returns a new instance of StarPortrait.



931
932
933
934
# File 'lib/v20180129/models.rb', line 931

def initialize(name=nil, percent=nil)
  @Name = name
  @Percent = percent
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    喜欢的明星名字

  • Percent:

    百分比



929
930
931
# File 'lib/v20180129/models.rb', line 929

def Name
  @Name
end

#PercentObject

Parameters:

  • Name:

    喜欢的明星名字

  • Percent:

    百分比



929
930
931
# File 'lib/v20180129/models.rb', line 929

def Percent
  @Percent
end

Instance Method Details

#deserialize(params) ⇒ Object



936
937
938
939
# File 'lib/v20180129/models.rb', line 936

def deserialize(params)
  @Name = params['Name']
  @Percent = params['Percent']
end