Class: Vk::API::Likes
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Likes
- Defined in:
- lib/vk/api/methods.rb,
lib/vk/api/responses.rb,
lib/vk/api/likes/methods/add.rb,
lib/vk/api/likes/methods/delete.rb,
lib/vk/api/likes/methods/get_list.rb,
lib/vk/api/likes/methods/is_liked.rb,
lib/vk/api/likes/responses/add_response.rb,
lib/vk/api/likes/responses/delete_response.rb,
lib/vk/api/likes/responses/get_list_response.rb,
lib/vk/api/likes/responses/is_liked_response.rb
Defined Under Namespace
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#add(arguments = {}) ⇒ Vk::API::Likes::Responses::AddResponse
Adds the specified object to the 'Likes' list of the current user.
-
#delete(arguments = {}) ⇒ Vk::API::Likes::Responses::DeleteResponse
Deletes the specified object from the 'Likes' list of the current user.
-
#get_list(arguments = {}) ⇒ Vk::API::Likes::Responses::GetListResponse
Returns a list of IDs of users who added the specified object to their 'Likes' list.
-
#is_liked(arguments = {}) ⇒ Vk::API::Likes::Responses::IsLikedResponse
Checks for the object in the 'Likes' list of the specified user.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#add(arguments = {}) ⇒ Vk::API::Likes::Responses::AddResponse
Returns Adds the specified object to the 'Likes' list of the current user.
4711 4712 4713 4714 4715 4716 4717 |
# File 'lib/vk/api/methods.rb', line 4711 def add(arguments = {}) require "vk/api/likes/methods/add" method = Methods::Add.new(arguments) response = method.call(@client) require "vk/api/likes/responses/add_response" Responses::AddResponse.new(response.deep_symbolize_keys) end |
#delete(arguments = {}) ⇒ Vk::API::Likes::Responses::DeleteResponse
Returns Deletes the specified object from the 'Likes' list of the current user.
4724 4725 4726 4727 4728 4729 4730 |
# File 'lib/vk/api/methods.rb', line 4724 def delete(arguments = {}) require "vk/api/likes/methods/delete" method = Methods::Delete.new(arguments) response = method.call(@client) require "vk/api/likes/responses/delete_response" Responses::DeleteResponse.new(response.deep_symbolize_keys) end |
#get_list(arguments = {}) ⇒ Vk::API::Likes::Responses::GetListResponse
Returns a list of IDs of users who added the specified object to their 'Likes' list.
4697 4698 4699 4700 4701 4702 4703 |
# File 'lib/vk/api/methods.rb', line 4697 def get_list(arguments = {}) require "vk/api/likes/methods/get_list" method = Methods::GetList.new(arguments) response = method.call(@client) require "vk/api/likes/responses/get_list_response" Responses::GetListResponse.new(response.deep_symbolize_keys) end |
#is_liked(arguments = {}) ⇒ Vk::API::Likes::Responses::IsLikedResponse
Returns Checks for the object in the 'Likes' list of the specified user.
4738 4739 4740 4741 4742 4743 4744 |
# File 'lib/vk/api/methods.rb', line 4738 def is_liked(arguments = {}) require "vk/api/likes/methods/is_liked" method = Methods::IsLiked.new(arguments) response = method.call(@client) require "vk/api/likes/responses/is_liked_response" Responses::IsLikedResponse.new(response.deep_symbolize_keys) end |