Class: TencentCloud::Lcic::V20220817::ImageInfo

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

Overview

单张图片信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, size = nil, width = nil, height = nil, url = nil) ⇒ ImageInfo

Returns a new instance of ImageInfo.



3625
3626
3627
3628
3629
3630
3631
# File 'lib/v20220817/models.rb', line 3625

def initialize(type=nil, size=nil, width=nil, height=nil, url=nil)
  @Type = type
  @Size = size
  @Width = width
  @Height = height
  @URL = url
end

Instance Attribute Details

#HeightObject

1-原图2-大图3-缩略图

Parameters:

  • Type:

    图片类型:

  • Size:

    图片数据大小,单位:字节。

  • Width:

    图片宽度,单位为像素。

  • Height:

    图片高度,单位为像素。

  • URL:

    图片下载地址。



3623
3624
3625
# File 'lib/v20220817/models.rb', line 3623

def Height
  @Height
end

#SizeObject

1-原图2-大图3-缩略图

Parameters:

  • Type:

    图片类型:

  • Size:

    图片数据大小,单位:字节。

  • Width:

    图片宽度,单位为像素。

  • Height:

    图片高度,单位为像素。

  • URL:

    图片下载地址。



3623
3624
3625
# File 'lib/v20220817/models.rb', line 3623

def Size
  @Size
end

#TypeObject

1-原图2-大图3-缩略图

Parameters:

  • Type:

    图片类型:

  • Size:

    图片数据大小,单位:字节。

  • Width:

    图片宽度,单位为像素。

  • Height:

    图片高度,单位为像素。

  • URL:

    图片下载地址。



3623
3624
3625
# File 'lib/v20220817/models.rb', line 3623

def Type
  @Type
end

#URLObject

1-原图2-大图3-缩略图

Parameters:

  • Type:

    图片类型:

  • Size:

    图片数据大小,单位:字节。

  • Width:

    图片宽度,单位为像素。

  • Height:

    图片高度,单位为像素。

  • URL:

    图片下载地址。



3623
3624
3625
# File 'lib/v20220817/models.rb', line 3623

def URL
  @URL
end

#WidthObject

1-原图2-大图3-缩略图

Parameters:

  • Type:

    图片类型:

  • Size:

    图片数据大小,单位:字节。

  • Width:

    图片宽度,单位为像素。

  • Height:

    图片高度,单位为像素。

  • URL:

    图片下载地址。



3623
3624
3625
# File 'lib/v20220817/models.rb', line 3623

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



3633
3634
3635
3636
3637
3638
3639
# File 'lib/v20220817/models.rb', line 3633

def deserialize(params)
  @Type = params['Type']
  @Size = params['Size']
  @Width = params['Width']
  @Height = params['Height']
  @URL = params['URL']
end