Class: Vk::API::Wall::Methods::GetById
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Wall::Methods::GetById
- Defined in:
- lib/vk/api/wall/methods/get_by_id.rb
Overview
Returns a list of posts from user or community walls by their IDs.
Arguments collapse
-
#copy_history_depth ⇒ Integer
Sets the number of parent elements to include in the array 'copy_history' that is returned if the post is a repost from another wall.
-
#extended ⇒ Boolean
'1' — to return user and community objects needed to display posts; '0' — no additional fields are returned (default).
- #fields ⇒ Array
-
#posts ⇒ Array
User or community IDs and post IDs, separated by underscores.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Wall::Methods::GetById constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Wall::Methods::GetById
|
|
# File 'lib/vk/api/wall/methods/get_by_id.rb', line 15
|
Instance Method Details
#copy_history_depth ⇒ Integer
30 |
# File 'lib/vk/api/wall/methods/get_by_id.rb', line 30 attribute :copy_history_depth, API::Types::Coercible::Int.optional.default(2) |
#extended ⇒ Boolean
28 |
# File 'lib/vk/api/wall/methods/get_by_id.rb', line 28 attribute :extended, API::Types::Form::Bool.optional.default(nil) |