Class: Vk::API::Notes::Methods::GetComments

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

Overview

Returns a list of comments on a note.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :note_id (Integer)

    Note ID.

  • :owner_id (Integer)

    Note owner ID.

  • :count (Integer)

    Number of comments to return.



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

Instance Method Details

#countInteger

Returns Number of comments to return.

Returns:

  • (Integer)

    Number of comments to return.



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

attribute :count, API::Types::Coercible::Int.optional.default(20)

#note_idInteger

Returns Note ID.

Returns:

  • (Integer)

    Note ID.



25
# File 'lib/vk/api/notes/methods/get_comments.rb', line 25

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

#owner_idInteger

Returns Note owner ID.

Returns:

  • (Integer)

    Note owner ID.



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

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