Class: Vk::API::Wall::Methods::EditComment

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

Overview

Edits a comment on 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::EditComment

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    User ID or community ID. Use a negative value to designate a community ID.; ;

  • :comment_id (Integer)

    Comment ID.

  • :message (String)

    New comment text.;

  • :attachments (Array)

    List of objects attached to the comment, in the following format:; ; ","; '' — Type of media attachment:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; '' — ID of the media attachment owner.; '' — Media attachment ID. ; ; For example:; "photo100172_166443618,photo66748_265827614"



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

Instance Method Details

#attachmentsArray

Returns List of objects attached to the comment, in the following format:; ; ","; '' — Type of media attachment:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; '' — ID of the media attachment owner.; '' — Media attachment ID. ; ; For example:; "photo100172_166443618,photo66748_265827614".

Returns:

  • (Array)

    List of objects attached to the comment, in the following format:; ; ","; '' — Type of media attachment:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; '' — ID of the media attachment owner.; '' — Media attachment ID. ; ; For example:; "photo100172_166443618,photo66748_265827614"



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

attribute :attachments, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil)

#comment_idInteger

Returns Comment ID.

Returns:

  • (Integer)

    Comment ID.



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

attribute :comment_id, API::Types::Coercible::Int

#messageString

Returns New comment text.;.

Returns:

  • (String)

    New comment text.;



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

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

#owner_idInteger

Returns User ID or community ID. Use a negative value to designate a community ID.; ;.

Returns:

  • (Integer)

    User ID or community ID. Use a negative value to designate a community ID.; ;



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

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