Class: Vk::API::Status
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Status
- Defined in:
- lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/responses.rb,
lib/vk/api/status/status.rb,
lib/vk/api/status/methods/get.rb,
lib/vk/api/status/methods/set.rb,
lib/vk/api/status/responses/get_response.rb,
lib/vk/api/status/responses/set_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: Status
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#get(arguments = {}) ⇒ Vk::API::Status::Responses::GetResponse
Returns data required to show the status of a user or community.
-
#set(arguments = {}) ⇒ Vk::API::Status::Responses::SetResponse
Sets a new status for the current user.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#get(arguments = {}) ⇒ Vk::API::Status::Responses::GetResponse
Returns data required to show the status of a user or community.
1774 1775 1776 1777 1778 1779 1780 |
# File 'lib/vk/api/methods.rb', line 1774 def get(arguments = {}) require "vk/api/status/methods/get" method = Methods::Get.new(arguments) response = method.call(@client) require "vk/api/status/responses/get_response" Responses::GetResponse.new(response.deep_symbolize_keys) end |
#set(arguments = {}) ⇒ Vk::API::Status::Responses::SetResponse
Returns Sets a new status for the current user.
1786 1787 1788 1789 1790 1791 1792 |
# File 'lib/vk/api/methods.rb', line 1786 def set(arguments = {}) require "vk/api/status/methods/set" method = Methods::Set.new(arguments) response = method.call(@client) require "vk/api/status/responses/set_response" Responses::SetResponse.new(response.deep_symbolize_keys) end |