Class: Vk::API::Wall::Methods::Restore

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

Overview

Restores a post deleted from a user wall or community wall.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    User ID or community ID from whose wall the post was deleted. Use a negative value to designate a community ID.

  • :post_id (Integer)

    ID of the post to be restored.


# File 'lib/vk/api/wall/methods/restore.rb', line 15

Instance Method Details

#owner_idInteger

Returns User ID or community ID from whose wall the post was deleted. Use a negative value to designate a community ID.

Returns:

  • (Integer)

    User ID or community ID from whose wall the post was deleted. Use a negative value to designate a community ID.


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

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

#post_idInteger

Returns ID of the post to be restored.

Returns:

  • (Integer)

    ID of the post to be restored.


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

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