Class: Vk::API::Photos::Methods::RestoreComment

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

Overview

Restores a deleted comment on a photo.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of the user or community that owns the photo.

  • :comment_id (Integer)

    ID of the deleted comment.


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

Instance Method Details

#comment_idInteger

Returns ID of the deleted comment.

Returns:

  • (Integer)

    ID of the deleted comment.


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

attribute :comment_id, API::Types::Coercible::Int

#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_comment.rb', line 24

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