Class: Vk::API::Groups::Methods::Join

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

Overview

With this method you can join the group or public page, and also confirm your participation in an event.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :group_id (Integer)

    ID or screen name of the community.

  • :not_sure (String)

    Optional parameter which is taken into account when 'gid' belongs to the event:; '1' — Perhaps I will attend; '0' — I will be there for sure (default); ;


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

Instance Method Details

#group_idInteger

Returns ID or screen name of the community.

Returns:

  • (Integer)

    ID or screen name of the community.


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

attribute :group_id, API::Types::Coercible::Int.optional.default(nil)

#not_sureString

Returns Optional parameter which is taken into account when 'gid' belongs to the event:; '1' — Perhaps I will attend; '0' — I will be there for sure (default); ;.

Returns:

  • (String)

    Optional parameter which is taken into account when 'gid' belongs to the event:; '1' — Perhaps I will attend; '0' — I will be there for sure (default); ;


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

attribute :not_sure, API::Types::Coercible::String.optional.default(nil)