Class: TencentCloud::Iai::V20200303::Hair

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

Overview

头发信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(length = nil, bang = nil, color = nil) ⇒ Hair

Returns a new instance of Hair.



2731
2732
2733
2734
2735
# File 'lib/v20200303/models.rb', line 2731

def initialize(length=nil, bang=nil, color=nil)
  @Length = length
  @Bang = bang
  @Color = color
end

Instance Attribute Details

#BangObject

AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。

Parameters:

  • Length:

    头发长度信息。

  • Bang:

    刘海信息。

  • Color:

    头发颜色信息。



2729
2730
2731
# File 'lib/v20200303/models.rb', line 2729

def Bang
  @Bang
end

#ColorObject

AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。

Parameters:

  • Length:

    头发长度信息。

  • Bang:

    刘海信息。

  • Color:

    头发颜色信息。



2729
2730
2731
# File 'lib/v20200303/models.rb', line 2729

def Color
  @Color
end

#LengthObject

AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。

Parameters:

  • Length:

    头发长度信息。

  • Bang:

    刘海信息。

  • Color:

    头发颜色信息。



2729
2730
2731
# File 'lib/v20200303/models.rb', line 2729

def Length
  @Length
end

Instance Method Details

#deserialize(params) ⇒ Object



2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
# File 'lib/v20200303/models.rb', line 2737

def deserialize(params)
  unless params['Length'].nil?
    @Length = AttributeItem.new
    @Length.deserialize(params['Length'])
  end
  unless params['Bang'].nil?
    @Bang = AttributeItem.new
    @Bang.deserialize(params['Bang'])
  end
  unless params['Color'].nil?
    @Color = AttributeItem.new
    @Color.deserialize(params['Color'])
  end
end