Class: TencentCloud::Hunyuan::V20230901::LogoRect

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230901/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.



1739
1740
1741
1742
1743
1744
# File 'lib/v20230901/models.rb', line 1739

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:

    方框高度



1737
1738
1739
# File 'lib/v20230901/models.rb', line 1737

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



1737
1738
1739
# File 'lib/v20230901/models.rb', line 1737

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



1737
1738
1739
# File 'lib/v20230901/models.rb', line 1737

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



1737
1738
1739
# File 'lib/v20230901/models.rb', line 1737

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



1746
1747
1748
1749
1750
1751
# File 'lib/v20230901/models.rb', line 1746

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