Class: TencentCloud::Bda::V20200324::UpperBodyCloth

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

Overview

上衣属性信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(texture = nil, color = nil, sleeve = nil) ⇒ UpperBodyCloth

Returns a new instance of UpperBodyCloth.



1710
1711
1712
1713
1714
# File 'lib/v20200324/models.rb', line 1710

def initialize(texture=nil, color=nil, sleeve=nil)
  @Texture = texture
  @Color = color
  @Sleeve = sleeve
end

Instance Attribute Details

#ColorObject

Parameters:

  • Texture:

    上衣纹理信息。

  • Color:

    上衣颜色信息。

  • Sleeve:

    上衣衣袖信息。



1708
1709
1710
# File 'lib/v20200324/models.rb', line 1708

def Color
  @Color
end

#SleeveObject

Parameters:

  • Texture:

    上衣纹理信息。

  • Color:

    上衣颜色信息。

  • Sleeve:

    上衣衣袖信息。



1708
1709
1710
# File 'lib/v20200324/models.rb', line 1708

def Sleeve
  @Sleeve
end

#TextureObject

Parameters:

  • Texture:

    上衣纹理信息。

  • Color:

    上衣颜色信息。

  • Sleeve:

    上衣衣袖信息。



1708
1709
1710
# File 'lib/v20200324/models.rb', line 1708

def Texture
  @Texture
end

Instance Method Details

#deserialize(params) ⇒ Object



1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
# File 'lib/v20200324/models.rb', line 1716

def deserialize(params)
  unless params['Texture'].nil?
    @Texture = UpperBodyClothTexture.new
    @Texture.deserialize(params['Texture'])
  end
  unless params['Color'].nil?
    @Color = UpperBodyClothColor.new
    @Color.deserialize(params['Color'])
  end
  unless params['Sleeve'].nil?
    @Sleeve = UpperBodyClothSleeve.new
    @Sleeve.deserialize(params['Sleeve'])
  end
end