Class: TencentCloud::Iai::V20180301::Hat
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20180301::Hat
- Defined in:
- lib/v20180301/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.
2435 2436 2437 2438 |
# File 'lib/v20180301/models.rb', line 2435 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:混色系。
2433 2434 2435 |
# File 'lib/v20180301/models.rb', line 2433 def Color @Color end |
#Style ⇒ Object
-
AttributeItem对应的Type为 —— 0:不戴帽子,1:普通帽子,2:头盔,3:保安帽。
-
AttributeItem对应的Type为 —— 0:不戴帽子,1:红色系,2:黄色系,3:蓝色系,4:黑色系,5:灰白色系,6:混色系。
2433 2434 2435 |
# File 'lib/v20180301/models.rb', line 2433 def Style @Style end |
Instance Method Details
#deserialize(params) ⇒ Object
2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 |
# File 'lib/v20180301/models.rb', line 2440 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 |