Class: Vk::API::Groups::Methods::Invite

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/groups/methods/invite.rb

Overview

Allows to invite friends to the community.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Groups::Methods::Invite

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :group_id (Integer)

    Community ID.

  • :user_id (Integer)

    User ID.


# File 'lib/vk/api/groups/methods/invite.rb', line 15

Instance Method Details

#group_idInteger

Returns Community ID.

Returns:

  • (Integer)

    Community ID.


24
# File 'lib/vk/api/groups/methods/invite.rb', line 24

attribute :group_id, API::Types::Coercible::Int

#user_idInteger

Returns User ID.

Returns:

  • (Integer)

    User ID.


26
# File 'lib/vk/api/groups/methods/invite.rb', line 26

attribute :user_id, API::Types::Coercible::Int