Class: Vk::API::Photos::Methods::Restore

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

Overview

Restores a deleted photo.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of the user or community that owns the photo.

  • :photo_id (Integer)

    Photo ID.



# File 'lib/vk/api/photos/methods/restore.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.



24
# File 'lib/vk/api/photos/methods/restore.rb', line 24

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

#photo_idInteger

Returns Photo ID.

Returns:

  • (Integer)

    Photo ID.



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

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