Sha256: 6c10c6c78fb6d45037eba115c14786cbf6ab62afda1a64955d1a6e145567869d

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

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

module Vk
  module API
    class Friends < Vk::Schema::Namespace
      module Methods
        # Approves or creates a friend request.
        class Add < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'friends.add'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :user_id ID of the user whose friend request will be approved or to whom a friend request will be sent.
          #   @option arguments [String] :text Text of the message (up to 500 characters) for the friend request, if any.
          #   @option arguments [Boolean] :follow '1' to pass an incoming request to followers list.
          #   @return [Friends::Methods::Add]

          # @!group Arguments

          # @return [Integer] ID of the user whose friend request will be approved or to whom a friend request will be sent.
          attribute :user_id, API::Types::Coercible::Int.optional
          # @return [String] Text of the message (up to 500 characters) for the friend request, if any.
          attribute :text, API::Types::Coercible::String.optional
          # @return [Boolean] '1' to pass an incoming request to followers list.
          attribute :follow, API::Types::Bool.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/friends/methods/add.rb