Class: Vk::API::Audio::Methods::Restore

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/audio/methods/restore.rb

Overview

Restores a audio file.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Audio::Methods::Restore

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :audio_id (Integer)

    Audio file ID.

  • :owner_id (Integer)

    ID of the user or community that owns the audio file.



# File 'lib/vk/api/audio/methods/restore.rb', line 15

Instance Method Details

#audio_idInteger

Returns Audio file ID.

Returns:

  • (Integer)

    Audio file ID.



24
# File 'lib/vk/api/audio/methods/restore.rb', line 24

attribute :audio_id, API::Types::Coercible::Int

#owner_idInteger

Returns ID of the user or community that owns the audio file.

Returns:

  • (Integer)

    ID of the user or community that owns the audio file.



26
# File 'lib/vk/api/audio/methods/restore.rb', line 26

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