@return [Float]
# File lib/twitter/search_results.rb, line 16 def completed_in @attrs[:search_metadata][:completed_in] if search_metadata? end
@return [Integer]
# File lib/twitter/search_results.rb, line 21 def max_id @attrs[:search_metadata][:max_id] if search_metadata? end
Returns a Hash of query parameters for the next result in the search
@note Returned Hash can be merged into the previous search options list to easily access the next page. @return [Hash] The parameters needed to fetch the next page.
# File lib/twitter/search_results.rb, line 60 def next_results if next_results? query_string = strip_first_character(@attrs[:search_metadata][:next_results]) query_string_to_hash(query_string) end end
@return [Boolean]
# File lib/twitter/search_results.rb, line 51 def next_results? !@attrs[:search_metadata][:next_results].nil? if search_metadata? end
@return [Integer]
# File lib/twitter/search_results.rb, line 26 def page @attrs[:search_metadata][:page] if search_metadata? end
@return [String]
# File lib/twitter/search_results.rb, line 31 def query @attrs[:search_metadata][:query] if search_metadata? end
Returns a Hash of query parameters for the refresh URL in the search
@note Returned Hash can be merged into the previous search options list to easily access the refresh page. @return [Hash] The parameters needed to refresh the page.
# File lib/twitter/search_results.rb, line 72 def refresh_url query_string = strip_first_character(@attrs[:search_metadata][:refresh_url]) query_string_to_hash(query_string) end
@return [Integer]
# File lib/twitter/search_results.rb, line 36 def results_per_page @attrs[:search_metadata][:results_per_page] if search_metadata? end
# File lib/twitter/search_results.rb, line 41 def search_metadata? !@attrs[:search_metadata].nil? end
@return [Integer]
# File lib/twitter/search_results.rb, line 46 def since_id @attrs[:search_metadata][:since_id] if search_metadata? end
@return [Array<Twitter::Tweet>]
# File lib/twitter/search_results.rb, line 7 def statuses @results ||= Array(@attrs[:statuses]).map do |tweet| Twitter::Tweet.fetch_or_new(tweet) end end
Generated with the Darkfish Rdoc Generator 2.