Class: TencentCloud::Tbm::V20180129::GenderPortrait

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

Overview

性别画像元素

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gender = nil, percent = nil) ⇒ GenderPortrait

Returns a new instance of GenderPortrait.



754
755
756
757
# File 'lib/v20180129/models.rb', line 754

def initialize(gender=nil, percent=nil)
  @Gender = gender
  @Percent = percent
end

Instance Attribute Details

#GenderObject

Parameters:

  • Gender:

    性别

  • Percent:

    百分比



752
753
754
# File 'lib/v20180129/models.rb', line 752

def Gender
  @Gender
end

#PercentObject

Parameters:

  • Gender:

    性别

  • Percent:

    百分比



752
753
754
# File 'lib/v20180129/models.rb', line 752

def Percent
  @Percent
end

Instance Method Details

#deserialize(params) ⇒ Object



759
760
761
762
# File 'lib/v20180129/models.rb', line 759

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