Class: Vk::API::Likes::Methods::Add
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Likes::Methods::Add
- Defined in:
- lib/vk/api/likes/methods/add.rb
Overview
Adds the specified object to the 'Likes' list of the current user.
Arguments collapse
-
#access_key ⇒ String
Access key required for an object owned by a private entity.;.
-
#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; 'sitepage' — page of the site where the is installed.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Likes::Methods::Add constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#access_key ⇒ String
Returns 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_id ⇒ Integer
Returns Object ID.
30 |
# File 'lib/vk/api/likes/methods/add.rb', line 30 attribute :item_id, API::Types::Coercible::Int |
#owner_id ⇒ Integer
Returns 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) |
#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; '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 |