Class: TencentCloud::Aiart::V20221229::LogoRect

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

Overview

输入框

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LogoRect.



369
370
371
372
373
374
# File 'lib/v20221229/models.rb', line 369

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:

    方框高度



367
368
369
# File 'lib/v20221229/models.rb', line 367

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



367
368
369
# File 'lib/v20221229/models.rb', line 367

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



367
368
369
# File 'lib/v20221229/models.rb', line 367

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



367
368
369
# File 'lib/v20221229/models.rb', line 367

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



376
377
378
379
380
381
# File 'lib/v20221229/models.rb', line 376

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