Class: Vk::API::Wall::Methods::Repost

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/wall/methods/repost.rb

Overview

Reposts (copies) an object to a user wall or community wall.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Wall::Methods::Repost

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :object (String)

    ID of the object to be reposted on the wall. Example:; "wall66748_3675"

  • :message (String)

    Comment to be added along with the reposted object.

  • :group_id (Integer)

    Target community ID when reposting to a community.

  • :mark_as_ads (Boolean)

# File 'lib/vk/api/wall/methods/repost.rb', line 15

Instance Method Details

#group_idInteger

Returns Target community ID when reposting to a community.

Returns:

  • (Integer)

    Target community ID when reposting to a community.


30
# File 'lib/vk/api/wall/methods/repost.rb', line 30

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

#mark_as_adsBoolean


32
# File 'lib/vk/api/wall/methods/repost.rb', line 32

attribute :mark_as_ads, API::Types::Form::Bool.optional.default(false)

#messageString

Returns Comment to be added along with the reposted object.

Returns:

  • (String)

    Comment to be added along with the reposted object.


28
# File 'lib/vk/api/wall/methods/repost.rb', line 28

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

#objectString

Returns ID of the object to be reposted on the wall. Example:; "wall66748_3675".

Returns:

  • (String)

    ID of the object to be reposted on the wall. Example:; "wall66748_3675"


26
# File 'lib/vk/api/wall/methods/repost.rb', line 26

attribute :object, API::Types::Coercible::String