Class: Vk::API::Video::Methods::GetComments
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Video::Methods::GetComments
- Defined in:
- lib/vk/api/video/methods/get_comments.rb
Overview
Returns a list of comments on a video.
Arguments collapse
-
#count ⇒ Integer
Number of comments to return.
- #extended ⇒ Boolean
-
#need_likes ⇒ Boolean
'1' — to return an additional 'likes' field.
-
#offset ⇒ Integer
Offset needed to return a specific subset of comments.
-
#owner_id ⇒ Integer
ID of the user or community that owns the video.
-
#sort ⇒ String
Sort order:; 'asc' — oldest comment first; 'desc' — newest comment first.
- #start_comment_id ⇒ Integer
-
#video_id ⇒ Integer
Video ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Video::Methods::GetComments
|
# File 'lib/vk/api/video/methods/get_comments.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of comments to return.
40 |
# File 'lib/vk/api/video/methods/get_comments.rb', line 40 attribute :count, API::Types::Coercible::Int.optional.default(20) |
#extended ⇒ Boolean
44 |
# File 'lib/vk/api/video/methods/get_comments.rb', line 44 attribute :extended, API::Types::Form::Bool.optional.default(nil) |
#need_likes ⇒ Boolean
Returns '1' — to return an additional 'likes' field.
34 |
# File 'lib/vk/api/video/methods/get_comments.rb', line 34 attribute :need_likes, API::Types::Form::Bool.optional.default(nil) |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of comments.
38 |
# File 'lib/vk/api/video/methods/get_comments.rb', line 38 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#owner_id ⇒ Integer
Returns ID of the user or community that owns the video.
30 |
# File 'lib/vk/api/video/methods/get_comments.rb', line 30 attribute :owner_id, API::Types::Coercible::Int.optional.default(nil) |
#sort ⇒ String
Returns Sort order:; 'asc' — oldest comment first; 'desc' — newest comment first.
42 |
# File 'lib/vk/api/video/methods/get_comments.rb', line 42 attribute :sort, API::Types::Coercible::String.optional.default(nil) |