Sha256: 288f6270f381e1b1103beda4c6e52ce36480aba5f99dfd2f17aae798143ced35

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 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 higher education institutions.
        class GetUniversities < Schema::Method
          # @!group Properties

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

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [String] :q Search query.
          #   @option arguments [Integer] :country_id Country ID.
          #   @option arguments [Integer] :city_id City ID.
          #   @option arguments [Integer] :offset Offset needed to return a specific subset of universities.
          #   @option arguments [Integer] :count Number of universities to return.
          #   @return [Database::Methods::GetUniversities]

          # @!group Arguments

          # @return [String] Search query.
          attribute :q, API::Types::Coercible::String.optional
          # @return [Integer] Country ID.
          attribute :country_id, API::Types::Coercible::Int.optional
          # @return [Integer] City ID.
          attribute :city_id, API::Types::Coercible::Int.optional
          # @return [Integer] Offset needed to return a specific subset of universities.
          attribute :offset, API::Types::Coercible::Int.optional
          # @return [Integer] Number of universities 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_universities.rb