Class: TencentCloud::Iai::V20200303::Hat
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20200303::Hat
- Defined in:
- lib/v20200303/models.rb
Overview
帽子信息
Instance Attribute Summary collapse
-
#Color ⇒ Object
AttributeItem对应的Type为 —— 0:不戴帽子,1:普通帽子,2:头盔,3:保安帽。 AttributeItem对应的Type为 —— 0:不戴帽子,1:红色系,2:黄色系,3:蓝色系,4:黑色系,5:灰白色系,6:混色系。.
-
#Style ⇒ Object
AttributeItem对应的Type为 —— 0:不戴帽子,1:普通帽子,2:头盔,3:保安帽。 AttributeItem对应的Type为 —— 0:不戴帽子,1:红色系,2:黄色系,3:蓝色系,4:黑色系,5:灰白色系,6:混色系。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(style = nil, color = nil) ⇒ Hat
constructor
A new instance of Hat.
Constructor Details
#initialize(style = nil, color = nil) ⇒ Hat
Returns a new instance of Hat.
2764 2765 2766 2767 |
# File 'lib/v20200303/models.rb', line 2764 def initialize(style=nil, color=nil) @Style = style @Color = color end |
Instance Attribute Details
#Color ⇒ Object
AttributeItem对应的Type为 —— 0:不戴帽子,1:普通帽子,2:头盔,3:保安帽。AttributeItem对应的Type为 —— 0:不戴帽子,1:红色系,2:黄色系,3:蓝色系,4:黑色系,5:灰白色系,6:混色系。
2762 2763 2764 |
# File 'lib/v20200303/models.rb', line 2762 def Color @Color end |
#Style ⇒ Object
AttributeItem对应的Type为 —— 0:不戴帽子,1:普通帽子,2:头盔,3:保安帽。AttributeItem对应的Type为 —— 0:不戴帽子,1:红色系,2:黄色系,3:蓝色系,4:黑色系,5:灰白色系,6:混色系。
2762 2763 2764 |
# File 'lib/v20200303/models.rb', line 2762 def Style @Style end |
Instance Method Details
#deserialize(params) ⇒ Object
2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 |
# File 'lib/v20200303/models.rb', line 2769 def deserialize(params) unless params['Style'].nil? @Style = AttributeItem.new @Style.deserialize(params['Style']) end unless params['Color'].nil? @Color = AttributeItem.new @Color.deserialize(params['Color']) end end |