Sha256: 5b7946a06d433e80cd8bdf9871864371c55ab395153071cbacae438a00bfe02b

Contents?: true

Size: 962 Bytes

Versions: 1

Compression:

Stored size: 962 Bytes

Contents

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

module Vk
  module API
    class Utils < Vk::Schema::Namespace
      module Methods
        # Detects a type of object (e.g., user, community, application) and its ID by screen name.
        class ResolveScreenName < Schema::Method
          # @!group Properties

          self.open = true
          self.method = 'utils.resolveScreenName'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [String] :screen_name Screen name of the user, community (e.g., 'apiclub,' 'andrew', or 'rules_of_war'), or application.
          #   @return [Utils::Methods::ResolveScreenName]

          # @!group Arguments

          # @return [String] Screen name of the user, community (e.g., 'apiclub,' 'andrew', or 'rules_of_war'), or application.
          attribute :screen_name, API::Types::Coercible::String.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/utils/methods/resolve_screen_name.rb