Class: Vk::API::Likes::Methods::Add

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

Overview

Adds the specified object to 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::Add

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.

  • :access_key (String)

    Access key required for an object owned by a private entity.;


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

Instance Method Details

#access_keyString

Returns Access key required for an object owned by a private entity.;.

Returns:

  • (String)

    Access key required for an object owned by a private entity.;


32
# File 'lib/vk/api/likes/methods/add.rb', line 32

attribute :access_key, API::Types::Coercible::String.optional.default(nil)

#item_idInteger

Returns Object ID.

Returns:

  • (Integer)

    Object ID.


30
# File 'lib/vk/api/likes/methods/add.rb', line 30

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.


28
# File 'lib/vk/api/likes/methods/add.rb', line 28

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


26
# File 'lib/vk/api/likes/methods/add.rb', line 26

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