Class: Vk::API::Groups::Methods::AddLink

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

Overview

Allows to add a link to the community.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :group_id (Integer)

    Community ID.

  • :link (String)

    LInk URL.

  • :text (String)

    Description text for the link.


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

Instance Method Details

#group_idInteger

Returns Community ID.

Returns:

  • (Integer)

    Community ID.


25
# File 'lib/vk/api/groups/methods/add_link.rb', line 25

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

Returns LInk URL.

Returns:

  • (String)

    LInk URL.


27
# File 'lib/vk/api/groups/methods/add_link.rb', line 27

attribute :link, API::Types::Coercible::String

#textString

Returns Description text for the link.

Returns:

  • (String)

    Description text for the link.


29
# File 'lib/vk/api/groups/methods/add_link.rb', line 29

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