Sha256: b34fe2c7fe2297d0422745dc5c6332db52a97738ae7d2fabb820853012149cac

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 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 schools.
        class GetSchools < Schema::Method
          # @!group Properties

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

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

          # @!group Arguments

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