Module: Vk::DSL::Newsfeed
- Included in:
- Vk::DSL
- Defined in:
- lib/vk/dsl/newsfeed.rb
Defined Under Namespace
Classes: SearchItem, SearchResult
Constant Summary collapse
- FIELDS =
%i( sex bdate city country photo_50 photo_100 photo_200_orig photo_200 photo_400_orig photo_max photo_max_orig online online_mobile domain has_mobile contacts connections site education universities schools can_post can_see_all_posts can_see_audio can_write_private_message status last_seen common_count relation relatives screen_name maiden_name timezone occupation activities interests music movies tv books games about quotes )
Instance Method Summary collapse
-
#search(options = {}) ⇒ SearchResult
Friends information.
Instance Method Details
#search(options = {}) ⇒ SearchResult
Friends information
128 129 130 131 132 133 134 |
# File 'lib/vk/dsl/newsfeed.rb', line 128 def search( = {}) [:extended] = !![:extended] ? 1 : 0 if [:extended] [:start_time] = [:start_time].to_i if [:start_time] [:end_time] = [:end_time].to_i if [:end_time] [:fields] = Array.wrap([:fields]).compact.join(',') if [:fields] SearchResult.new(self, ).fetch! end |