Class: TencentCloud::Vm::V20210922::ImageResultsResultDetailLocation

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

Overview

图片详情位置信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x = nil, y = nil, width = nil, height = nil, rotate = nil) ⇒ ImageResultsResultDetailLocation

Returns a new instance of ImageResultsResultDetailLocation.



918
919
920
921
922
923
924
# File 'lib/v20210922/models.rb', line 918

def initialize(x=nil, y=nil, width=nil, height=nil, rotate=nil)
  @X = x
  @Y = y
  @Width = width
  @Height = height
  @Rotate = rotate
end

Instance Attribute Details

#HeightObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    旋转角度



916
917
918
# File 'lib/v20210922/models.rb', line 916

def Height
  @Height
end

#RotateObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    旋转角度



916
917
918
# File 'lib/v20210922/models.rb', line 916

def Rotate
  @Rotate
end

#WidthObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    旋转角度



916
917
918
# File 'lib/v20210922/models.rb', line 916

def Width
  @Width
end

#XObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    旋转角度



916
917
918
# File 'lib/v20210922/models.rb', line 916

def X
  @X
end

#YObject

Parameters:

  • X:

    x坐标

  • Y:

    y坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    旋转角度



916
917
918
# File 'lib/v20210922/models.rb', line 916

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



926
927
928
929
930
931
932
# File 'lib/v20210922/models.rb', line 926

def deserialize(params)
  @X = params['X']
  @Y = params['Y']
  @Width = params['Width']
  @Height = params['Height']
  @Rotate = params['Rotate']
end