Sha256: 3b9a0508dd75a4e1a7defda6daa2d5374a2f8a3f1df5781f13e9ba955d705723

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Database < Vk::Schema::Namespace
      module Methods
        # Returns a list of cities.
        class GetCities < Schema::Method
          # @!group Properties

          self.open = true
          self.method = 'database.getCities'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :country_id Country ID.
          #   @option arguments [Integer] :region_id Region ID.
          #   @option arguments [String] :q Search query.
          #   @option arguments [Boolean] :need_all '1' — to return all cities in the country; '0' — to return major cities in the country (default);
          #   @option arguments [Integer] :offset Offset needed to return a specific subset of cities.
          #   @option arguments [Integer] :count Number of cities to return.
          #   @return [Database::Methods::GetCities]

          # @!group Arguments

          # @return [Integer] Country ID.
          attribute :country_id, API::Types::Coercible::Int.optional
          # @return [Integer] Region ID.
          attribute :region_id, API::Types::Coercible::Int.optional
          # @return [String] Search query.
          attribute :q, API::Types::Coercible::String.optional
          # @return [Boolean] '1' — to return all cities in the country; '0' — to return major cities in the country (default);
          attribute :need_all, API::Types::Bool.optional
          # @return [Integer] Offset needed to return a specific subset of cities.
          attribute :offset, API::Types::Coercible::Int.optional
          # @return [Integer] Number of cities to return.
          attribute :count, API::Types::Coercible::Int.optional
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/database/methods/get_cities.rb