Class: Vk::API::Orders
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Orders
- Defined in:
- lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/responses.rb,
lib/vk/api/orders/order.rb,
lib/vk/api/orders/amount.rb,
lib/vk/api/orders/methods/get.rb,
lib/vk/api/orders/methods/get_by_id.rb,
lib/vk/api/orders/methods/get_amount.rb,
lib/vk/api/orders/methods/change_state.rb,
lib/vk/api/orders/responses/get_response.rb,
lib/vk/api/orders/responses/get_by_id_response.rb,
lib/vk/api/orders/responses/get_amount_response.rb,
lib/vk/api/orders/responses/change_state_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: Amount, Order
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#change_state(arguments = {}) ⇒ Vk::API::Orders::Responses::ChangeStateResponse
Changes order status.
-
#get(arguments = {}) ⇒ Vk::API::Orders::Responses::GetResponse
Returns a list of orders.
- #get_amount(arguments = {}) ⇒ Vk::API::Orders::Responses::GetAmountResponse
-
#get_by_id(arguments = {}) ⇒ Vk::API::Orders::Responses::GetByIdResponse
Returns information about orders by their IDs.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#change_state(arguments = {}) ⇒ Vk::API::Orders::Responses::ChangeStateResponse
Returns Changes order status.
1741 1742 1743 1744 1745 1746 1747 |
# File 'lib/vk/api/methods.rb', line 1741 def change_state(arguments = {}) require "vk/api/orders/methods/change_state" method = Methods::ChangeState.new(arguments) response = method.call(@client) require "vk/api/orders/responses/change_state_response" Responses::ChangeStateResponse.new(response.deep_symbolize_keys) end |
#get(arguments = {}) ⇒ Vk::API::Orders::Responses::GetResponse
Returns a list of orders.
1714 1715 1716 1717 1718 1719 1720 |
# File 'lib/vk/api/methods.rb', line 1714 def get(arguments = {}) require "vk/api/orders/methods/get" method = Methods::Get.new(arguments) response = method.call(@client) require "vk/api/orders/responses/get_response" Responses::GetResponse.new(response.deep_symbolize_keys) end |
#get_amount(arguments = {}) ⇒ Vk::API::Orders::Responses::GetAmountResponse
1753 1754 1755 1756 1757 1758 1759 |
# File 'lib/vk/api/methods.rb', line 1753 def get_amount(arguments = {}) require "vk/api/orders/methods/get_amount" method = Methods::GetAmount.new(arguments) response = method.call(@client) require "vk/api/orders/responses/get_amount_response" Responses::GetAmountResponse.new(response.deep_symbolize_keys) end |
#get_by_id(arguments = {}) ⇒ Vk::API::Orders::Responses::GetByIdResponse
Returns information about orders by their IDs.
1727 1728 1729 1730 1731 1732 1733 |
# File 'lib/vk/api/methods.rb', line 1727 def get_by_id(arguments = {}) require "vk/api/orders/methods/get_by_id" method = Methods::GetById.new(arguments) response = method.call(@client) require "vk/api/orders/responses/get_by_id_response" Responses::GetByIdResponse.new(response.deep_symbolize_keys) end |