Class: Vk::API::Notes::Methods::GetById

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

Overview

Returns a note by its ID.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :note_id (Integer)

    Note ID.

  • :owner_id (Integer)

    Note owner ID.



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

Instance Method Details

#note_idInteger

Returns Note ID.

Returns:

  • (Integer)

    Note ID.



24
# File 'lib/vk/api/notes/methods/get_by_id.rb', line 24

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

#owner_idInteger

Returns Note owner ID.

Returns:

  • (Integer)

    Note owner ID.



26
# File 'lib/vk/api/notes/methods/get_by_id.rb', line 26

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