Class: TencentCloud::Iai::V20180301::Hair
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20180301::Hair
- Defined in:
- lib/v20180301/models.rb
Overview
头发信息
Instance Attribute Summary collapse
-
#Bang ⇒ Object
-
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。 - AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。 - AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。.
-
-
#Color ⇒ Object
-
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。 - AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。 - AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。.
-
-
#Length ⇒ Object
-
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。 - AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。 - AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。.
-
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(length = nil, bang = nil, color = nil) ⇒ Hair
constructor
A new instance of Hair.
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
#Bang ⇒ Object
-
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。
-
AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。
-
AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。
2400 2401 2402 |
# File 'lib/v20180301/models.rb', line 2400 def Bang @Bang end |
#Color ⇒ Object
-
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。
-
AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。
-
AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。
2400 2401 2402 |
# File 'lib/v20180301/models.rb', line 2400 def Color @Color end |
#Length ⇒ Object
-
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。
-
AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。
-
AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。
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 |