Class: Vk::API::Fave::Methods::AddLink

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

Overview

Adds a link to user faves.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :link (String)

    Link URL.

  • :text (String)

    Description text.


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

Instance Method Details

Returns Link URL.

Returns:

  • (String)

    Link URL.


24
# File 'lib/vk/api/fave/methods/add_link.rb', line 24

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

#textString

Returns Description text.

Returns:

  • (String)

    Description text.


26
# File 'lib/vk/api/fave/methods/add_link.rb', line 26

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