Class: Vk::API::Newsfeed::Methods::Search
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Newsfeed::Methods::Search
- Defined in:
- lib/vk/api/newsfeed/methods/search.rb
Overview
Returns search results by statuses.;
Arguments collapse
-
#count ⇒ Integer
Number of posts to return.
-
#end_time ⇒ Integer
Latest timestamp (in Unix time) of a news item to return.
-
#extended ⇒ Boolean
'1' — to return additional information about the user or community that placed the post.
-
#fields ⇒ Array
Additional fields of and to return.
-
#latitude ⇒ Number
Geographical latitude point (in degrees, -90 to 90) within which to search.;.
-
#longitude ⇒ Number
Geographical longitude point (in degrees, -180 to 180) within which to search.;.
-
#q ⇒ String
Search query string (e.g., 'New Year').
- #start_from ⇒ String
-
#start_time ⇒ Integer
Earliest timestamp (in Unix time) of a news item to return.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Newsfeed::Methods::Search
|
# File 'lib/vk/api/newsfeed/methods/search.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of posts to return.
35 |
# File 'lib/vk/api/newsfeed/methods/search.rb', line 35 attribute :count, API::Types::Coercible::Int.optional.default(30) |
#end_time ⇒ Integer
Returns Latest timestamp (in Unix time) of a news item to return. By default, the current time.
43 |
# File 'lib/vk/api/newsfeed/methods/search.rb', line 43 attribute :end_time, API::Types::Coercible::Int.optional.default(nil) |
#extended ⇒ Boolean
Returns '1' — to return additional information about the user or community that placed the post.
33 |
# File 'lib/vk/api/newsfeed/methods/search.rb', line 33 attribute :extended, API::Types::Form::Bool.optional.default(nil) |
#fields ⇒ Array
Returns Additional fields of and to return.
47 |
# File 'lib/vk/api/newsfeed/methods/search.rb', line 47 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#latitude ⇒ Number
Returns Geographical latitude point (in degrees, -90 to 90) within which to search.;.
37 |
# File 'lib/vk/api/newsfeed/methods/search.rb', line 37 attribute :latitude, API::Types::Coercible::Int.optional.default(nil) |
#longitude ⇒ Number
Returns Geographical longitude point (in degrees, -180 to 180) within which to search.;.
39 |
# File 'lib/vk/api/newsfeed/methods/search.rb', line 39 attribute :longitude, API::Types::Coercible::Int.optional.default(nil) |
#q ⇒ String
Returns Search query string (e.g., 'New Year').
31 |
# File 'lib/vk/api/newsfeed/methods/search.rb', line 31 attribute :q, API::Types::Coercible::String.optional.default(nil) |