Class: Vk::API::Database::Methods::GetUniversities

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

Overview

Returns a list of higher education institutions.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :q (String)

    Search query.

  • :country_id (Integer)

    Country ID.

  • :city_id (Integer)

    City ID.

  • :offset (Integer)

    Offset needed to return a specific subset of universities.

  • :count (Integer)

    Number of universities to return.


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

Instance Method Details

#city_idInteger

Returns City ID.

Returns:

  • (Integer)

    City ID.


31
# File 'lib/vk/api/database/methods/get_universities.rb', line 31

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

#countInteger

Returns Number of universities to return.

Returns:

  • (Integer)

    Number of universities to return.


35
# File 'lib/vk/api/database/methods/get_universities.rb', line 35

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

#country_idInteger

Returns Country ID.

Returns:

  • (Integer)

    Country ID.


29
# File 'lib/vk/api/database/methods/get_universities.rb', line 29

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

#offsetInteger

Returns Offset needed to return a specific subset of universities.

Returns:

  • (Integer)

    Offset needed to return a specific subset of universities.


33
# File 'lib/vk/api/database/methods/get_universities.rb', line 33

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

#qString

Returns Search query.

Returns:

  • (String)

    Search query.


27
# File 'lib/vk/api/database/methods/get_universities.rb', line 27

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