Class: Vk::API::Database::Methods::GetCities

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

Overview

Returns a list of cities.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :country_id (Integer)

    Country ID.

  • :region_id (Integer)

    Region ID.

  • :q (String)

    Search query.

  • :need_all (Boolean)

    '1' — to return all cities in the country; '0' — to return major cities in the country (default);

  • :offset (Integer)

    Offset needed to return a specific subset of cities.

  • :count (Integer)

    Number of cities to return.


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

Instance Method Details

#countInteger

Returns Number of cities to return.

Returns:

  • (Integer)

    Number of cities to return.


38
# File 'lib/vk/api/database/methods/get_cities.rb', line 38

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

#country_idInteger

Returns Country ID.

Returns:

  • (Integer)

    Country ID.


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

attribute :country_id, API::Types::Coercible::Int

#need_allBoolean

Returns '1' — to return all cities in the country; '0' — to return major cities in the country (default);.

Returns:

  • (Boolean)

    '1' — to return all cities in the country; '0' — to return major cities in the country (default);


34
# File 'lib/vk/api/database/methods/get_cities.rb', line 34

attribute :need_all, API::Types::Form::Bool.optional.default(nil)

#offsetInteger

Returns Offset needed to return a specific subset of cities.

Returns:

  • (Integer)

    Offset needed to return a specific subset of cities.


36
# File 'lib/vk/api/database/methods/get_cities.rb', line 36

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

#qString

Returns Search query.

Returns:

  • (String)

    Search query.


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

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

#region_idInteger

Returns Region ID.

Returns:

  • (Integer)

    Region ID.


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

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