Class: Vk::API::Database::Methods::GetSchools

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/database/methods/get_schools.rb

Overview

Returns a list of schools.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Database::Methods::GetSchools

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :q (String)

    Search query.

  • :city_id (Integer)

    City ID.

  • :offset (Integer)

    Offset needed to return a specific subset of schools.

  • :count (Integer)

    Number of schools to return.



# File 'lib/vk/api/database/methods/get_schools.rb', line 15

Instance Method Details

#city_idInteger

Returns City ID.

Returns:

  • (Integer)

    City ID.



28
# File 'lib/vk/api/database/methods/get_schools.rb', line 28

attribute :city_id, API::Types::Coercible::Int

#countInteger

Returns Number of schools to return.

Returns:

  • (Integer)

    Number of schools to return.



32
# File 'lib/vk/api/database/methods/get_schools.rb', line 32

attribute :count, API::Types::Coercible::Int.optional.default(100)

#offsetInteger

Returns Offset needed to return a specific subset of schools.

Returns:

  • (Integer)

    Offset needed to return a specific subset of schools.



30
# File 'lib/vk/api/database/methods/get_schools.rb', line 30

attribute :offset, API::Types::Coercible::Int.optional.default(nil)

#qString

Returns Search query.

Returns:

  • (String)

    Search query.



26
# File 'lib/vk/api/database/methods/get_schools.rb', line 26

attribute :q, API::Types::Coercible::String.optional.default(nil)