Class: Vk::API::Video::Methods::RestoreComment

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

Overview

Restores a previously deleted comment on a video.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of the user or community that owns the video.

  • :comment_id (Integer)

    ID of the deleted comment.


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

Returns:

  • (Integer)

    ID of the user or community that owns the video.


24
# File 'lib/vk/api/video/methods/restore_comment.rb', line 24

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