Class: Vk::API::Likes::Methods::Delete

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/likes/methods/delete.rb

Overview

Deletes the specified object from the 'Likes' list of the current user.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Likes::Methods::Delete

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :type (String)

    Object type:; 'post' — post on user or community wall; 'comment' — comment on a wall post; 'photo' — photo; 'audio' — audio; 'video' — video; 'note' — note; 'photo_comment' — comment on the photo; 'video_comment' — comment on the video; 'topic_comment' — comment in the discussion; 'sitepage' — page of the site where the is installed

  • :owner_id (Integer)

    ID of the user or community that owns the object.

  • :item_id (Integer)

    Object ID.


# File 'lib/vk/api/likes/methods/delete.rb', line 15

Instance Method Details

#item_idInteger

Returns Object ID.

Returns:

  • (Integer)

    Object ID.


29
# File 'lib/vk/api/likes/methods/delete.rb', line 29

attribute :item_id, API::Types::Coercible::Int

#owner_idInteger

Returns ID of the user or community that owns the object.

Returns:

  • (Integer)

    ID of the user or community that owns the object.


27
# File 'lib/vk/api/likes/methods/delete.rb', line 27

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

#typeString

Returns Object type:; 'post' — post on user or community wall; 'comment' — comment on a wall post; 'photo' — photo; 'audio' — audio; 'video' — video; 'note' — note; 'photo_comment' — comment on the photo; 'video_comment' — comment on the video; 'topic_comment' — comment in the discussion; 'sitepage' — page of the site where the is installed.

Returns:

  • (String)

    Object type:; 'post' — post on user or community wall; 'comment' — comment on a wall post; 'photo' — photo; 'audio' — audio; 'video' — video; 'note' — note; 'photo_comment' — comment on the photo; 'video_comment' — comment on the video; 'topic_comment' — comment in the discussion; 'sitepage' — page of the site where the is installed


25
# File 'lib/vk/api/likes/methods/delete.rb', line 25

attribute :type, API::Types::Coercible::String