Class: Vk::API::Likes::Methods::IsLiked
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Likes::Methods::IsLiked
- 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
-
#item_id ⇒ Integer
Object ID.
-
#owner_id ⇒ Integer
ID of the user or community that owns the object.
-
#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.
-
#user_id ⇒ Integer
User ID.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Likes::Methods::IsLiked constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Likes::Methods::IsLiked
|
# File 'lib/vk/api/likes/methods/is_liked.rb', line 15
|
Instance Method Details
#item_id ⇒ Integer
Returns Object ID.
32 |
# File 'lib/vk/api/likes/methods/is_liked.rb', line 32 attribute :item_id, API::Types::Coercible::Int |
#owner_id ⇒ Integer
Returns 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) |
#type ⇒ String
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.
28 |
# File 'lib/vk/api/likes/methods/is_liked.rb', line 28 attribute :type, API::Types::Coercible::String |