Class: Vk::API::Newsfeed::Methods::GetRecommended

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

Overview

; Returns a list of newsfeeds recommended to the current user.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :start_time (Integer)

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

  • :end_time (Integer)

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

  • :max_photos (Integer)

    Maximum number of photos to return. By default, '5'.

  • :start_from (String)

    'new_from' value obtained in previous call.

  • :count (Integer)

    Number of news items to return.

  • :fields (Array)

    Additional fields of and to return.


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

Instance Method Details

#countInteger

Returns Number of news items to return.

Returns:

  • (Integer)

    Number of news items to return.


36
# File 'lib/vk/api/newsfeed/methods/get_recommended.rb', line 36

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

#end_timeInteger

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

Returns:

  • (Integer)

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


30
# File 'lib/vk/api/newsfeed/methods/get_recommended.rb', line 30

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

#fieldsArray

Returns Additional fields of and to return.

Returns:

  • (Array)

    Additional fields of and to return.


38
# File 'lib/vk/api/newsfeed/methods/get_recommended.rb', line 38

attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil)

#max_photosInteger

Returns Maximum number of photos to return. By default, '5'.

Returns:

  • (Integer)

    Maximum number of photos to return. By default, '5'.


32
# File 'lib/vk/api/newsfeed/methods/get_recommended.rb', line 32

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

#start_fromString

Returns 'new_from' value obtained in previous call.

Returns:

  • (String)

    'new_from' value obtained in previous call.


34
# File 'lib/vk/api/newsfeed/methods/get_recommended.rb', line 34

attribute :start_from, API::Types::Coercible::String.optional.default(nil)

#start_timeInteger

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

Returns:

  • (Integer)

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


28
# File 'lib/vk/api/newsfeed/methods/get_recommended.rb', line 28

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