Class: Vk::API::Market::Methods::RestoreComment

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

Overview

Restores a recently deleted comment

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    identifier of an item owner community; "Note that community id in the 'owner_id' parameter should be negative number. For example 'owner_id'=-1 matches the [vk.com/apiclub|VK API] community "

  • :comment_id (Integer)

    deleted comment id



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

Instance Method Details

#comment_idInteger

Returns deleted comment id.

Returns:

  • (Integer)

    deleted comment id



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

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

#owner_idInteger

Returns identifier of an item owner community; "Note that community id in the 'owner_id' parameter should be negative number. For example 'owner_id'=-1 matches the [vk.com/apiclub|VK API] community ".

Returns:

  • (Integer)

    identifier of an item owner community; "Note that community id in the 'owner_id' parameter should be negative number. For example 'owner_id'=-1 matches the [vk.com/apiclub|VK API] community "



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

attribute :owner_id, API::Types::Coercible::Int