# frozen_string_literal: true require 'vk/api/methods' module Vk module API class Users < Vk::Schema::Namespace module Methods # Returns detailed information on users. class Get < Schema::Method # @!group Properties self.open = true self.method = 'users.get' # @method initialize(arguments) # @param [Hash] arguments # @option arguments [Array] :user_ids User IDs or screen names ('screen_name'). By default, current user ID. # @option arguments [Array, 'bdate'] :fields Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'contacts', 'education', 'online', 'counters', 'relation', 'last_seen', 'activity', 'can_write_private_message', 'can_see_all_posts', 'can_post', 'universities'; # @option arguments [String] :name_case Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional # @return [Users::Methods::Get] # @!group Arguments # @return [Array] User IDs or screen names ('screen_name'). By default, current user ID. attribute :user_ids, API::Types::Coercible::Array.optional # @return [Array, 'bdate'] Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'contacts', 'education', 'online', 'counters', 'relation', 'last_seen', 'activity', 'can_write_private_message', 'can_see_all_posts', 'can_post', 'universities'; attribute :fields, API::Types::Coercible::Array.optional # @return [String] Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional attribute :name_case, API::Types::Coercible::String.optional end end end end end