Class: Vk::API::Video::Methods::AddAlbum

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

Overview

Creates an empty album for videos.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Video::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.

  • :privacy (Array)

    new access permissions for the album.; Possible values: ; *'0' – all users;; *'1' – friends only;; *'2' – friends and friends of friends;; *'3' – "only me".



# File 'lib/vk/api/video/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).



25
# File 'lib/vk/api/video/methods/add_album.rb', line 25

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

#privacyArray

Returns new access permissions for the album.; Possible values: ; *'0' – all users;; *'1' – friends only;; *'2' – friends and friends of friends;; *'3' – "only me".

Returns:

  • (Array)

    new access permissions for the album.; Possible values: ; *'0' – all users;; *'1' – friends only;; *'2' – friends and friends of friends;; *'3' – "only me".



29
# File 'lib/vk/api/video/methods/add_album.rb', line 29

attribute :privacy, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil)

#titleString

Returns Album title.

Returns:

  • (String)

    Album title.



27
# File 'lib/vk/api/video/methods/add_album.rb', line 27

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