Class: Vk::API::Likes::Methods::IsLiked

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

Overview

Checks for the object in the 'Likes' list of the specified user.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    User ID.

  • :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

  • :owner_id (Integer)

    ID of the user or community that owns the object.

  • :item_id (Integer)

    Object ID.


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

Instance Method Details

#item_idInteger

Returns Object ID.

Returns:

  • (Integer)

    Object ID.


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

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.


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

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.

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


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

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

#user_idInteger

Returns User ID.

Returns:

  • (Integer)

    User ID.


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

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