Class: Vk::API::Groups::Methods::EditLink

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

Overview

Allows to edit a link in the community.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :group_id (Integer)

    Community ID.

  • :link_id (Integer)

    Link ID.

  • :text (String)

    New description text for the link.


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

Instance Method Details

#group_idInteger

Returns Community ID.

Returns:

  • (Integer)

    Community ID.


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

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

Returns Link ID.

Returns:

  • (Integer)

    Link ID.


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

attribute :link_id, API::Types::Coercible::Int

#textString

Returns New description text for the link.

Returns:

  • (String)

    New description text for the link.


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

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