Class: TencentCloud::Mrs::V20200910::Coordinate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::Coordinate
- Defined in:
- lib/v20200910/models.rb
Overview
坐标
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ Coordinate
constructor
A new instance of Coordinate.
Constructor Details
#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ Coordinate
Returns a new instance of Coordinate.
2114 2115 2116 2117 2118 2119 |
# File 'lib/v20200910/models.rb', line 2114 def initialize(x=nil, y=nil, width=nil, height=nil) @X = x @Y = y @Width = width @Height = height end |
Instance Attribute Details
#Height ⇒ Object
2112 2113 2114 |
# File 'lib/v20200910/models.rb', line 2112 def Height @Height end |
#Width ⇒ Object
2112 2113 2114 |
# File 'lib/v20200910/models.rb', line 2112 def Width @Width end |
#X ⇒ Object
2112 2113 2114 |
# File 'lib/v20200910/models.rb', line 2112 def X @X end |
#Y ⇒ Object
2112 2113 2114 |
# File 'lib/v20200910/models.rb', line 2112 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
2121 2122 2123 2124 2125 2126 |
# File 'lib/v20200910/models.rb', line 2121 def deserialize(params) @X = params['X'] @Y = params['Y'] @Width = params['Width'] @Height = params['Height'] end |