Class: Vk::API::Photos::Methods::Move

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

Overview

Moves a photo from one album to another.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of the user or community that owns the photo.

  • :target_album_id (Integer)

    ID of the album to which the photo will be moved.

  • :photo_id (Integer)

    Photo ID.



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

Instance Method Details

#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.



25
# File 'lib/vk/api/photos/methods/move.rb', line 25

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

#photo_idInteger

Returns Photo ID.

Returns:

  • (Integer)

    Photo ID.



29
# File 'lib/vk/api/photos/methods/move.rb', line 29

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

#target_album_idInteger

Returns ID of the album to which the photo will be moved.

Returns:

  • (Integer)

    ID of the album to which the photo will be moved.



27
# File 'lib/vk/api/photos/methods/move.rb', line 27

attribute :target_album_id, API::Types::Coercible::Int