Class: TencentCloud::Mrs::V20200910::Coordinate

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200910/models.rb

Overview

坐标

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#HeightObject

Parameters:

  • X:

    左上角x坐标

  • Y:

    左上角y坐标

  • Width:

    宽度,单位像素

  • Height:

    高度,单位像素



2112
2113
2114
# File 'lib/v20200910/models.rb', line 2112

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    左上角x坐标

  • Y:

    左上角y坐标

  • Width:

    宽度,单位像素

  • Height:

    高度,单位像素



2112
2113
2114
# File 'lib/v20200910/models.rb', line 2112

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角x坐标

  • Y:

    左上角y坐标

  • Width:

    宽度,单位像素

  • Height:

    高度,单位像素



2112
2113
2114
# File 'lib/v20200910/models.rb', line 2112

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角x坐标

  • Y:

    左上角y坐标

  • Width:

    宽度,单位像素

  • Height:

    高度,单位像素



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