Class: Vk::API::Newsfeed::Methods::GetMentions

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/newsfeed/methods/get_mentions.rb

Overview

Returns a list of posts on user walls in which the current user is mentioned.;

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Newsfeed::Methods::GetMentions

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    Owner ID.

  • :start_time (Integer)

    Earliest timestamp (in Unix time) of a post to return. By default, 24 hours ago.;

  • :end_time (Integer)

    Latest timestamp (in Unix time) of a post to return. By default, the current time.;

  • :offset (Integer)

    Offset needed to return a specific subset of posts.

  • :count (Integer)

    Number of posts to return.


# File 'lib/vk/api/newsfeed/methods/get_mentions.rb', line 15

Instance Method Details

#countInteger

Returns Number of posts to return.

Returns:

  • (Integer)

    Number of posts to return.


35
# File 'lib/vk/api/newsfeed/methods/get_mentions.rb', line 35

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

#end_timeInteger

Returns Latest timestamp (in Unix time) of a post to return. By default, the current time.;.

Returns:

  • (Integer)

    Latest timestamp (in Unix time) of a post to return. By default, the current time.;


31
# File 'lib/vk/api/newsfeed/methods/get_mentions.rb', line 31

attribute :end_time, API::Types::Coercible::Int.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.


33
# File 'lib/vk/api/newsfeed/methods/get_mentions.rb', line 33

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

#owner_idInteger

Returns Owner ID.

Returns:

  • (Integer)

    Owner ID.


27
# File 'lib/vk/api/newsfeed/methods/get_mentions.rb', line 27

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

#start_timeInteger

Returns Earliest timestamp (in Unix time) of a post to return. By default, 24 hours ago.;.

Returns:

  • (Integer)

    Earliest timestamp (in Unix time) of a post to return. By default, 24 hours ago.;


29
# File 'lib/vk/api/newsfeed/methods/get_mentions.rb', line 29

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