Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove redundant lazy_attr_reader and alias collection to resuts

  • Loading branch information...
commit 27e971febe13f70ad0c88a1f253ec799956cc503 1 parent bb8d35f
@wjlroe authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/twitter/search_results.rb
View
5 lib/twitter/search_results.rb
@@ -3,14 +3,11 @@
module Twitter
class SearchResults < Twitter::Base
- lazy_attr_reader :results, :completed_in, :max_id, :max_id_str, :next_path, :page,
- :query, :refresh_url, :results_per_page, :since_id, :since_id_str
-
-
# @return [Array<Twitter::Status>]
def results
@results ||= (@attrs['results'] || []).map{ |status| Twitter::Status.new(status) }
end
+ alias :collection :results
# @return [Float]
def completed_in
Please sign in to comment.
Something went wrong with that request. Please try again.