Class: Vk::API::Photos::Methods::CreateAlbum

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

Overview

Creates an empty photo album.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Photos::Methods::CreateAlbum

Parameters:

  • arguments (Hash)

Options Hash (arguments):



# File 'lib/vk/api/photos/methods/create_album.rb', line 15

Instance Method Details

#comments_disabled ⇒ Boolean



41
# File 'lib/vk/api/photos/methods/create_album.rb', line 41

attribute :comments_disabled, API::Types::Form::Bool.optional.default(nil)

#description ⇒ String

Returns Album description.

Returns:

  • (String) —

    Album description.



33
# File 'lib/vk/api/photos/methods/create_album.rb', line 33

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

#group_id ⇒ Integer

Returns ID of the community in which the album will be created.

Returns:

  • (Integer) —

    ID of the community in which the album will be created.



31
# File 'lib/vk/api/photos/methods/create_album.rb', line 31

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

#privacy_comment ⇒ Array



37
# File 'lib/vk/api/photos/methods/create_album.rb', line 37

attribute :privacy_comment, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default([])

#privacy_view ⇒ Array



35
# File 'lib/vk/api/photos/methods/create_album.rb', line 35

attribute :privacy_view, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default([])

#title ⇒ String

Returns Album title.

Returns:

  • (String) —

    Album title.



29
# File 'lib/vk/api/photos/methods/create_album.rb', line 29

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

#upload_by_admins_only ⇒ Boolean



39
# File 'lib/vk/api/photos/methods/create_album.rb', line 39

attribute :upload_by_admins_only, API::Types::Form::Bool.optional.default(nil)