Class: TencentCloud::Iai::V20180301::Hair

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180301/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.



2402
2403
2404
2405
2406
# File 'lib/v20180301/models.rb', line 2402

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:

    头发颜色信息。



2400
2401
2402
# File 'lib/v20180301/models.rb', line 2400

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:

    头发颜色信息。



2400
2401
2402
# File 'lib/v20180301/models.rb', line 2400

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:

    头发颜色信息。



2400
2401
2402
# File 'lib/v20180301/models.rb', line 2400

def Length
  @Length
end

Instance Method Details

#deserialize(params) ⇒ Object



2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
# File 'lib/v20180301/models.rb', line 2408

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