Class: TencentCloud::Tiia::V20190529::Product
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tiia::V20190529::Product
- Defined in:
- lib/v20190529/models.rb
Overview
检测到的单个商品结构体
Instance Attribute Summary collapse
- #Confidence ⇒ Object
- #Name ⇒ Object
- #Parents ⇒ Object
- #XMax ⇒ Object
- #XMin ⇒ Object
- #YMax ⇒ Object
- #YMin ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, parents = nil, confidence = nil, xmin = nil, ymin = nil, xmax = nil, ymax = nil) ⇒ Product
constructor
A new instance of Product.
Constructor Details
#initialize(name = nil, parents = nil, confidence = nil, xmin = nil, ymin = nil, xmax = nil, ymax = nil) ⇒ Product
Returns a new instance of Product.
1667 1668 1669 1670 1671 1672 1673 1674 1675 |
# File 'lib/v20190529/models.rb', line 1667 def initialize(name=nil, parents=nil, confidence=nil, xmin=nil, ymin=nil, xmax=nil, ymax=nil) @Name = name @Parents = parents @Confidence = confidence @XMin = xmin @YMin = ymin @XMax = xmax @YMax = ymax end |
Instance Attribute Details
#Confidence ⇒ Object
1665 1666 1667 |
# File 'lib/v20190529/models.rb', line 1665 def Confidence @Confidence end |
#Name ⇒ Object
1665 1666 1667 |
# File 'lib/v20190529/models.rb', line 1665 def Name @Name end |
#Parents ⇒ Object
1665 1666 1667 |
# File 'lib/v20190529/models.rb', line 1665 def Parents @Parents end |
#XMax ⇒ Object
1665 1666 1667 |
# File 'lib/v20190529/models.rb', line 1665 def XMax @XMax end |
#XMin ⇒ Object
1665 1666 1667 |
# File 'lib/v20190529/models.rb', line 1665 def XMin @XMin end |
#YMax ⇒ Object
1665 1666 1667 |
# File 'lib/v20190529/models.rb', line 1665 def YMax @YMax end |
#YMin ⇒ Object
1665 1666 1667 |
# File 'lib/v20190529/models.rb', line 1665 def YMin @YMin end |
Instance Method Details
#deserialize(params) ⇒ Object
1677 1678 1679 1680 1681 1682 1683 1684 1685 |
# File 'lib/v20190529/models.rb', line 1677 def deserialize(params) @Name = params['Name'] @Parents = params['Parents'] @Confidence = params['Confidence'] @XMin = params['XMin'] @YMin = params['YMin'] @XMax = params['XMax'] @YMax = params['YMax'] end |