Class: TencentCloud::Hcm::V20181106::ItemCoord

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

Overview

目标算式在图片上的坐标信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ItemCoord.



190
191
192
193
194
195
# File 'lib/v20181106/models.rb', line 190

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

Instance Attribute Details

#HeightObject

Parameters:

  • Height:

    算式高度

  • Width:

    算式宽度

  • X:

    算式图的左上角横坐标

  • Y:

    算式图的左上角纵坐标



188
189
190
# File 'lib/v20181106/models.rb', line 188

def Height
  @Height
end

#WidthObject

Parameters:

  • Height:

    算式高度

  • Width:

    算式宽度

  • X:

    算式图的左上角横坐标

  • Y:

    算式图的左上角纵坐标



188
189
190
# File 'lib/v20181106/models.rb', line 188

def Width
  @Width
end

#XObject

Parameters:

  • Height:

    算式高度

  • Width:

    算式宽度

  • X:

    算式图的左上角横坐标

  • Y:

    算式图的左上角纵坐标



188
189
190
# File 'lib/v20181106/models.rb', line 188

def X
  @X
end

#YObject

Parameters:

  • Height:

    算式高度

  • Width:

    算式宽度

  • X:

    算式图的左上角横坐标

  • Y:

    算式图的左上角纵坐标



188
189
190
# File 'lib/v20181106/models.rb', line 188

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



197
198
199
200
201
202
# File 'lib/v20181106/models.rb', line 197

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