Class: Vk::API::Places
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Places
- Defined in:
- lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/responses.rb,
lib/vk/api/places/types.rb,
lib/vk/api/places/checkin.rb,
lib/vk/api/places/place_full.rb,
lib/vk/api/places/methods/add.rb,
lib/vk/api/places/methods/search.rb,
lib/vk/api/places/methods/checkin.rb,
lib/vk/api/places/methods/get_by_id.rb,
lib/vk/api/places/methods/get_types.rb,
lib/vk/api/places/methods/get_checkins.rb,
lib/vk/api/places/responses/add_response.rb,
lib/vk/api/places/responses/search_response.rb,
lib/vk/api/places/responses/checkin_response.rb,
lib/vk/api/places/responses/get_by_id_response.rb,
lib/vk/api/places/responses/get_types_response.rb,
lib/vk/api/places/responses/get_checkins_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: Checkin, PlaceFull, Types
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#add(arguments = {}) ⇒ Vk::API::Places::Responses::AddResponse
Adds a new location to the location database.
-
#checkin(arguments = {}) ⇒ Vk::API::Places::Responses::CheckinResponse
Checks a user in at the specified location.
-
#get_by_id(arguments = {}) ⇒ Vk::API::Places::Responses::GetByIdResponse
Returns information about locations by their IDs.
-
#get_checkins(arguments = {}) ⇒ Vk::API::Places::Responses::GetCheckinsResponse
Returns a list of user check-ins at locations according to the set parameters.
-
#get_types(arguments = {}) ⇒ Vk::API::Places::Responses::GetTypesResponse
Returns a list of all types of locations.
-
#search(arguments = {}) ⇒ Vk::API::Places::Responses::SearchResponse
Returns a list of locations that match the search criteria.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#add(arguments = {}) ⇒ Vk::API::Places::Responses::AddResponse
Returns Adds a new location to the location database.
3710 3711 3712 3713 3714 3715 3716 |
# File 'lib/vk/api/methods.rb', line 3710 def add(arguments = {}) require "vk/api/places/methods/add" method = Methods::Add.new(arguments) response = method.call(@client) require "vk/api/places/responses/add_response" Responses::AddResponse.new(response.deep_symbolize_keys) end |
#checkin(arguments = {}) ⇒ Vk::API::Places::Responses::CheckinResponse
Returns Checks a user in at the specified location.
3754 3755 3756 3757 3758 3759 3760 |
# File 'lib/vk/api/methods.rb', line 3754 def checkin(arguments = {}) require "vk/api/places/methods/checkin" method = Methods::Checkin.new(arguments) response = method.call(@client) require "vk/api/places/responses/checkin_response" Responses::CheckinResponse.new(response.deep_symbolize_keys) end |
#get_by_id(arguments = {}) ⇒ Vk::API::Places::Responses::GetByIdResponse
Returns information about locations by their IDs.
3721 3722 3723 3724 3725 3726 3727 |
# File 'lib/vk/api/methods.rb', line 3721 def get_by_id(arguments = {}) require "vk/api/places/methods/get_by_id" method = Methods::GetById.new(arguments) response = method.call(@client) require "vk/api/places/responses/get_by_id_response" Responses::GetByIdResponse.new(response.deep_symbolize_keys) end |
#get_checkins(arguments = {}) ⇒ Vk::API::Places::Responses::GetCheckinsResponse
Returns a list of user check-ins at locations according to the set parameters.
3773 3774 3775 3776 3777 3778 3779 |
# File 'lib/vk/api/methods.rb', line 3773 def get_checkins(arguments = {}) require "vk/api/places/methods/get_checkins" method = Methods::GetCheckins.new(arguments) response = method.call(@client) require "vk/api/places/responses/get_checkins_response" Responses::GetCheckinsResponse.new(response.deep_symbolize_keys) end |
#get_types(arguments = {}) ⇒ Vk::API::Places::Responses::GetTypesResponse
Returns a list of all types of locations.
3783 3784 3785 3786 3787 3788 3789 |
# File 'lib/vk/api/methods.rb', line 3783 def get_types(arguments = {}) require "vk/api/places/methods/get_types" method = Methods::GetTypes.new(arguments) response = method.call(@client) require "vk/api/places/responses/get_types_response" Responses::GetTypesResponse.new(response.deep_symbolize_keys) end |
#search(arguments = {}) ⇒ Vk::API::Places::Responses::SearchResponse
Returns a list of locations that match the search criteria.
3738 3739 3740 3741 3742 3743 3744 |
# File 'lib/vk/api/methods.rb', line 3738 def search(arguments = {}) require "vk/api/places/methods/search" method = Methods::Search.new(arguments) response = method.call(@client) require "vk/api/places/responses/search_response" Responses::SearchResponse.new(response.deep_symbolize_keys) end |