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_disabledBoolean



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

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

#descriptionString

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_idInteger

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_commentArray



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_viewArray



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([])

#titleString

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_onlyBoolean



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

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