Class: TencentCloud::Mrs::V20200910::Rectangle

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, w = nil, h = nil) ⇒ Rectangle

Returns a new instance of Rectangle.



8945
8946
8947
8948
8949
8950
# File 'lib/v20200910/models.rb', line 8945

def initialize(x=nil, y=nil, w=nil, h=nil)
  @X = x
  @Y = y
  @W = w
  @H = h
end

Instance Attribute Details

#HObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • W:

  • H:



8943
8944
8945
# File 'lib/v20200910/models.rb', line 8943

def H
  @H
end

#WObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • W:

  • H:



8943
8944
8945
# File 'lib/v20200910/models.rb', line 8943

def W
  @W
end

#XObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • W:

  • H:



8943
8944
8945
# File 'lib/v20200910/models.rb', line 8943

def X
  @X
end

#YObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • W:

  • H:



8943
8944
8945
# File 'lib/v20200910/models.rb', line 8943

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



8952
8953
8954
8955
8956
8957
# File 'lib/v20200910/models.rb', line 8952

def deserialize(params)
  @X = params['X']
  @Y = params['Y']
  @W = params['W']
  @H = params['H']
end