Class: Vk::API::Board::Methods::GetComments
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Board::Methods::GetComments
- Defined in:
- lib/vk/api/board/methods/get_comments.rb
Overview
Returns a list of comments on a topic on a community's discussion board.
Arguments collapse
-
#count ⇒ Integer
Number of comments to return.
-
#extended ⇒ Boolean
'1' — to return information about users who posted comments; '0' — to return no additional fields (default).
-
#group_id ⇒ Integer
ID of the community that owns the discussion board.
-
#need_likes ⇒ Boolean
'1' — to return the 'likes' field; '0' — not to return the 'likes' field (default).
-
#offset ⇒ Integer
Offset needed to return a specific subset of comments.
-
#sort ⇒ String
Sort order:; 'asc' — by creation date in chronological order; 'desc' — by creation date in reverse chronological order;.
- #start_comment_id ⇒ Integer
-
#topic_id ⇒ Integer
Topic ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Board::Methods::GetComments
|
# File 'lib/vk/api/board/methods/get_comments.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of comments to return.
40 |
# File 'lib/vk/api/board/methods/get_comments.rb', line 40 attribute :count, API::Types::Coercible::Int.optional.default(20) |
#extended ⇒ Boolean
Returns '1' — to return information about users who posted comments; '0' — to return no additional fields (default).
42 |
# File 'lib/vk/api/board/methods/get_comments.rb', line 42 attribute :extended, API::Types::Form::Bool.optional.default(nil) |
#group_id ⇒ Integer
Returns ID of the community that owns the discussion board.
30 |
# File 'lib/vk/api/board/methods/get_comments.rb', line 30 attribute :group_id, API::Types::Coercible::Int |
#need_likes ⇒ Boolean
Returns '1' — to return the 'likes' field; '0' — not to return the 'likes' field (default).
34 |
# File 'lib/vk/api/board/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/board/methods/get_comments.rb', line 38 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#sort ⇒ String
Returns Sort order:; 'asc' — by creation date in chronological order; 'desc' — by creation date in reverse chronological order;.
44 |
# File 'lib/vk/api/board/methods/get_comments.rb', line 44 attribute :sort, API::Types::Coercible::String.optional.default(nil) |