Class: Vk::API::Video::Methods::Edit

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

Overview

Edits information about a video on a user or community page.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Video::Methods::Edit

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer) —

    ID of the user or community that owns the video.

  • :video_id (Integer) —

    Video ID.

  • :name (String) —

    New video title.

  • :desc (String) —

    New video description.

  • :privacy_view (Array) —

    Privacy settings in a .; Privacy setting is available for videos uploaded to own profile by user.

  • :privacy_comment (Array) —

    Privacy settings for comments in a .

  • :no_comments (Boolean) —

    Disable comments for the group video.

  • :repeat (Boolean) —

    '1' — to repeat the playback of the video; '0' — to play the video once;



# File 'lib/vk/api/video/methods/edit.rb', line 15

Instance Method Details

#desc ⇒ String

Returns New video description.

Returns:

  • (String) —

    New video description.



36
# File 'lib/vk/api/video/methods/edit.rb', line 36

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

#name ⇒ String

Returns New video title.

Returns:

  • (String) —

    New video title.



34
# File 'lib/vk/api/video/methods/edit.rb', line 34

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

#no_comments ⇒ Boolean

Returns Disable comments for the group video.

Returns:

  • (Boolean) —

    Disable comments for the group video.



42
# File 'lib/vk/api/video/methods/edit.rb', line 42

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

#owner_id ⇒ Integer

Returns ID of the user or community that owns the video.

Returns:

  • (Integer) —

    ID of the user or community that owns the video.



30
# File 'lib/vk/api/video/methods/edit.rb', line 30

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

#privacy_comment ⇒ Array

Returns Privacy settings for comments in a .

Returns:

  • (Array) —

    Privacy settings for comments in a .



40
# File 'lib/vk/api/video/methods/edit.rb', line 40

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

#privacy_view ⇒ Array

Returns Privacy settings in a .; Privacy setting is available for videos uploaded to own profile by user.

Returns:

  • (Array) —

    Privacy settings in a .; Privacy setting is available for videos uploaded to own profile by user.



38
# File 'lib/vk/api/video/methods/edit.rb', line 38

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

#repeat ⇒ Boolean

Returns '1' — to repeat the playback of the video; '0' — to play the video once;.

Returns:

  • (Boolean) —

    '1' — to repeat the playback of the video; '0' — to play the video once;



44
# File 'lib/vk/api/video/methods/edit.rb', line 44

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

#video_id ⇒ Integer

Returns Video ID.

Returns:

  • (Integer) —

    Video ID.



32
# File 'lib/vk/api/video/methods/edit.rb', line 32

attribute :video_id, API::Types::Coercible::Int