Class: Vk::API::Photos::PhotoSizes

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/photos/photo_sizes.rb

Overview

Instance Method Summary collapse

Instance Method Details

#heightInteger

Returns Height in px.

Returns:

  • (Integer)

    Height in px


15
# File 'lib/vk/api/photos/photo_sizes.rb', line 15

attribute :height, API::Types::Coercible::Int

#srcString

Returns URL of the image.

Returns:

  • (String)

    URL of the image


11
# File 'lib/vk/api/photos/photo_sizes.rb', line 11

attribute :src, API::Types::Coercible::String

#typeString

Returns Size type.

Returns:

  • (String)

    Size type


17
# File 'lib/vk/api/photos/photo_sizes.rb', line 17

attribute :type, API::Types::Coercible::String.enum("s", "m", "x", "o", "p", "q", "r", "y", "z", "w")

#widthInteger

Returns Width in px.

Returns:

  • (Integer)

    Width in px


13
# File 'lib/vk/api/photos/photo_sizes.rb', line 13

attribute :width, API::Types::Coercible::Int