Class: Vk::API::Audio::Methods::AddAlbum

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

Overview

Creates an empty audio album.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :group_id (Integer)

    Community ID (if the album will be created in a community).

  • :title (String)

    Album title.


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

Instance Method Details

#group_idInteger

Returns Community ID (if the album will be created in a community).

Returns:

  • (Integer)

    Community ID (if the album will be created in a community).


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

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

#titleString

Returns Album title.

Returns:

  • (String)

    Album title.


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

attribute :title, API::Types::Coercible::String