Class: TencentCloud::Iai::V20200303::Hair
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20200303::Hair
- Defined in:
- lib/v20200303/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.
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
#Bang ⇒ Object
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。
2729 2730 2731 |
# File 'lib/v20200303/models.rb', line 2729 def Bang @Bang end |
#Color ⇒ Object
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。
2729 2730 2731 |
# File 'lib/v20200303/models.rb', line 2729 def Color @Color end |
#Length ⇒ Object
AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。
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 |