Class: Vk::API::Fave::Methods::GetPosts

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/fave/methods/get_posts.rb

Overview

Returns a list of wall posts that the current user has liked.;

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Fave::Methods::GetPosts

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :offset (Integer)

    Offset needed to return a specific subset of posts.

  • :count (Integer)

    Number of posts to return.

  • :extended (Boolean)

    '1' — to return additional 'wall', 'profiles', and 'groups' fields.; ; By default: '0'.



# File 'lib/vk/api/fave/methods/get_posts.rb', line 15

Instance Method Details

#countInteger

Returns Number of posts to return.

Returns:

  • (Integer)

    Number of posts to return.



27
# File 'lib/vk/api/fave/methods/get_posts.rb', line 27

attribute :count, API::Types::Coercible::Int.optional.default(50)

#extendedBoolean

Returns '1' — to return additional 'wall', 'profiles', and 'groups' fields.; ; By default: '0'.

Returns:

  • (Boolean)

    '1' — to return additional 'wall', 'profiles', and 'groups' fields.; ; By default: '0'.



29
# File 'lib/vk/api/fave/methods/get_posts.rb', line 29

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

#offsetInteger

Returns Offset needed to return a specific subset of posts.

Returns:

  • (Integer)

    Offset needed to return a specific subset of posts.



25
# File 'lib/vk/api/fave/methods/get_posts.rb', line 25

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