Class: Vk::API::Groups::Methods::ReorderLink

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

Overview

Allows to reorder links in the community.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :group_id (Integer)

    Community ID.

  • :link_id (Integer)

    Link ID.

  • :after (Integer)

    ID of the link after which to place the link with 'link_id'.



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

Instance Method Details

#afterInteger

Returns ID of the link after which to place the link with 'link_id'.

Returns:

  • (Integer)

    ID of the link after which to place the link with 'link_id'.



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

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

#group_idInteger

Returns Community ID.

Returns:

  • (Integer)

    Community ID.



25
# File 'lib/vk/api/groups/methods/reorder_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/reorder_link.rb', line 27

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