Class: Vk::API::Notes::Methods::CreateComment

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

Overview

Adds a new comment on a note.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Notes::Methods::CreateComment

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :note_id (Integer)

    Note ID.

  • :owner_id (Integer)

    Note owner ID.

  • :reply_to (Integer)

    ID of the user to whom the reply is addressed (if the comment is a reply to another comment).;

  • :message (String)

    Comment text.

  • :guid (String)

# File 'lib/vk/api/notes/methods/create_comment.rb', line 15

Instance Method Details

#guidString


35
# File 'lib/vk/api/notes/methods/create_comment.rb', line 35

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

#messageString

Returns Comment text.

Returns:

  • (String)

    Comment text.


33
# File 'lib/vk/api/notes/methods/create_comment.rb', line 33

attribute :message, API::Types::Coercible::String

#note_idInteger

Returns Note ID.

Returns:

  • (Integer)

    Note ID.


27
# File 'lib/vk/api/notes/methods/create_comment.rb', line 27

attribute :note_id, API::Types::Coercible::Int

#owner_idInteger

Returns Note owner ID.

Returns:

  • (Integer)

    Note owner ID.


29
# File 'lib/vk/api/notes/methods/create_comment.rb', line 29

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

#reply_toInteger

Returns ID of the user to whom the reply is addressed (if the comment is a reply to another comment).;.

Returns:

  • (Integer)

    ID of the user to whom the reply is addressed (if the comment is a reply to another comment).;


31
# File 'lib/vk/api/notes/methods/create_comment.rb', line 31

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