Class: Vk::API::Photos::Methods::ReorderPhotos

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/photos/methods/reorder_photos.rb

Overview

Reorders the photo in the list of photos of the user album.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Photos::Methods::ReorderPhotos

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of the user or community that owns the photo.

  • :photo_id (Integer)

    Photo ID.

  • :before (Integer)

    ID of the photo before which the photo in question shall be placed.

  • :after (Integer)

    ID of the photo after which the photo in question shall be placed.



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

Instance Method Details

#afterInteger

Returns ID of the photo after which the photo in question shall be placed.

Returns:

  • (Integer)

    ID of the photo after which the photo in question shall be placed.



32
# File 'lib/vk/api/photos/methods/reorder_photos.rb', line 32

attribute :after, API::Types::Coercible::Int.optional.default(nil)

#beforeInteger

Returns ID of the photo before which the photo in question shall be placed.

Returns:

  • (Integer)

    ID of the photo before which the photo in question shall be placed.



30
# File 'lib/vk/api/photos/methods/reorder_photos.rb', line 30

attribute :before, API::Types::Coercible::Int.optional.default(nil)

#owner_idInteger

Returns ID of the user or community that owns the photo.

Returns:

  • (Integer)

    ID of the user or community that owns the photo.



26
# File 'lib/vk/api/photos/methods/reorder_photos.rb', line 26

attribute :owner_id, API::Types::Coercible::Int.optional.default(nil)

#photo_idInteger

Returns Photo ID.

Returns:

  • (Integer)

    Photo ID.



28
# File 'lib/vk/api/photos/methods/reorder_photos.rb', line 28

attribute :photo_id, API::Types::Coercible::Int