Class: Vk::API::Video::Methods::Save
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Video::Methods::Save
- Defined in:
- lib/vk/api/video/methods/save.rb
Overview
Returns a server address (required for upload) and video data.
Arguments collapse
-
#album_id ⇒ Integer
ID of the album to which the saved video will be added.
-
#description ⇒ String
Description of the video.
-
#group_id ⇒ Integer
ID of the community in which the video will be saved.
-
#is_private ⇒ Boolean
'1' — to designate the video as private (send it via a private message); the video will not appear on the user's video list and will not be available by ID for other users; '0' — not to designate the video as private.
-
#link ⇒ String
URL for embedding the video from an external website.
-
#name ⇒ String
Name of the video.
- #no_comments ⇒ Boolean
- #privacy_comment ⇒ Array
- #privacy_view ⇒ Array
-
#repeat ⇒ Boolean
'1' — to repeat the playback of the video; '0' — to play the video once;.
-
#wallpost ⇒ Boolean
'1' — to post the saved video on a user's wall; '0' — not to post the saved video on a user's wall.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Video::Methods::Save constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#album_id ⇒ Integer
Returns ID of the album to which the saved video will be added.
45 |
# File 'lib/vk/api/video/methods/save.rb', line 45 attribute :album_id, API::Types::Coercible::Int.optional.default(nil) |
#description ⇒ String
Returns Description of the video.
35 |
# File 'lib/vk/api/video/methods/save.rb', line 35 attribute :description, API::Types::Coercible::String.optional.default(nil) |
#group_id ⇒ Integer
Returns ID of the community in which the video will be saved. By default, the current user's page.
43 |
# File 'lib/vk/api/video/methods/save.rb', line 43 attribute :group_id, API::Types::Coercible::Int.optional.default(nil) |
#is_private ⇒ Boolean
Returns '1' — to designate the video as private (send it via a private message); the video will not appear on the user's video list and will not be available by ID for other users; '0' — not to designate the video as private.
37 |
# File 'lib/vk/api/video/methods/save.rb', line 37 attribute :is_private, API::Types::Form::Bool.optional.default(nil) |
#link ⇒ String
Returns URL for embedding the video from an external website.
41 |
# File 'lib/vk/api/video/methods/save.rb', line 41 attribute :link, API::Types::Coercible::String.optional.default(nil) |
#name ⇒ String
Returns Name of the video.
33 |
# File 'lib/vk/api/video/methods/save.rb', line 33 attribute :name, API::Types::Coercible::String.optional.default(nil) |
#no_comments ⇒ Boolean
51 |
# File 'lib/vk/api/video/methods/save.rb', line 51 attribute :no_comments, API::Types::Form::Bool.optional.default(nil) |
#privacy_comment ⇒ Array
49 |
# File 'lib/vk/api/video/methods/save.rb', line 49 attribute :privacy_comment, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#privacy_view ⇒ Array
47 |
# File 'lib/vk/api/video/methods/save.rb', line 47 attribute :privacy_view, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |