Class: TencentCloud::Tiia::V20190529::ObjectInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tiia::V20190529::ObjectInfo
- Defined in:
- lib/v20190529/models.rb
Overview
图像的主体信息。
Instance Attribute Summary collapse
-
#AllBox ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Attributes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Box ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CategoryId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Colors ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(box = nil, categoryid = nil, colors = nil, attributes = nil, allbox = nil) ⇒ ObjectInfo
constructor
A new instance of ObjectInfo.
Constructor Details
#initialize(box = nil, categoryid = nil, colors = nil, attributes = nil, allbox = nil) ⇒ ObjectInfo
Returns a new instance of ObjectInfo.
1580 1581 1582 1583 1584 1585 1586 |
# File 'lib/v20190529/models.rb', line 1580 def initialize(box=nil, categoryid=nil, colors=nil, attributes=nil, allbox=nil) @Box = box @CategoryId = categoryid @Colors = colors @Attributes = attributes @AllBox = allbox end |
Instance Attribute Details
#AllBox ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1578 1579 1580 |
# File 'lib/v20190529/models.rb', line 1578 def AllBox @AllBox end |
#Attributes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1578 1579 1580 |
# File 'lib/v20190529/models.rb', line 1578 def Attributes @Attributes end |
#Box ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1578 1579 1580 |
# File 'lib/v20190529/models.rb', line 1578 def Box @Box end |
#CategoryId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1578 1579 1580 |
# File 'lib/v20190529/models.rb', line 1578 def CategoryId @CategoryId end |
#Colors ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1578 1579 1580 |
# File 'lib/v20190529/models.rb', line 1578 def Colors @Colors end |
Instance Method Details
#deserialize(params) ⇒ Object
1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 |
# File 'lib/v20190529/models.rb', line 1588 def deserialize(params) unless params['Box'].nil? @Box = Box.new @Box.deserialize(params['Box']) end @CategoryId = params['CategoryId'] unless params['Colors'].nil? @Colors = [] params['Colors'].each do |i| colorinfo_tmp = ColorInfo.new colorinfo_tmp.deserialize(i) @Colors << colorinfo_tmp end end unless params['Attributes'].nil? @Attributes = [] params['Attributes'].each do |i| attribute_tmp = Attribute.new attribute_tmp.deserialize(i) @Attributes << attribute_tmp end end unless params['AllBox'].nil? @AllBox = [] params['AllBox'].each do |i| box_tmp = Box.new box_tmp.deserialize(i) @AllBox << box_tmp end end end |