Class: Twitter::SearchResults

### Home Classes Methods

### In Files

- lib/twitter/search_results.rb

### Parent

Twitter::Base

### Methods

- #collection
- #completed_in
- #max_id
- #next_page?
- #next_results?
- #page
- #query
- #results
- #results_per_page
- #rpp
- #search_metadata?
- #since_id
- #statuses

### Class/Module Index

Quicksearch

- Twitter
- Twitter::API
- Twitter::API::Arguments
- Twitter::API::DirectMessages
- Twitter::API::Favorites
- Twitter::API::FriendsAndFollowers
- Twitter::API::Help
- Twitter::API::Lists
- Twitter::API::PlacesAndGeo
- Twitter::API::SavedSearches
- Twitter::API::Search
- Twitter::API::SpamReporting
- Twitter::API::SuggestedUsers
- Twitter::API::Timelines
- Twitter::API::Trends
- Twitter::API::Tweets
- Twitter::API::Undocumented
- Twitter::API::Users
- Twitter::API::Utils
- Twitter::Action
- Twitter::Action::Favorite
- Twitter::Action::Follow
- Twitter::Action::ListMemberAdded
- Twitter::Action::Mention
- Twitter::Action::Reply
- Twitter::Action::Retweet
- Twitter::Action::Status
- Twitter::Action::Tweet
- Twitter::ActionFactory
- Twitter::Base
- Twitter::BasicUser
- Twitter::Client
- Twitter::Configurable
- Twitter::Configuration
- Twitter::Creatable
- Twitter::Cursor
- Twitter::Default
- Twitter::DirectMessage
- Twitter::Entity
- Twitter::Entity::Hashtag
- Twitter::Entity::Url
- Twitter::Entity::UserMention
- Twitter::Error
- Twitter::Error::AlreadyFavorited
- Twitter::Error::AlreadyRetweeted
- Twitter::Error::BadGateway
- Twitter::Error::BadRequest
- Twitter::Error::ClientError
- Twitter::Error::ConfigurationError
- Twitter::Error::DecodeError
- Twitter::Error::EnhanceYourCalm
- Twitter::Error::Forbidden
- Twitter::Error::GatewayTimeout
- Twitter::Error::IdentityMapKeyError
- Twitter::Error::InternalServerError
- Twitter::Error::NotAcceptable
- Twitter::Error::NotFound
- Twitter::Error::RateLimited
- Twitter::Error::ServerError
- Twitter::Error::ServiceUnavailable
- Twitter::Error::TooManyRequests
- Twitter::Error::Unauthorized
- Twitter::Error::UnprocessableEntity
- Twitter::Exceptable
- Twitter::Factory
- Twitter::Geo
- Twitter::Geo::Point
- Twitter::Geo::Polygon
- Twitter::GeoFactory
- Twitter::Identity
- Twitter::IdentityMap
- Twitter::Language
- Twitter::List
- Twitter::Media
- Twitter::Media::Photo
- Twitter::MediaFactory
- Twitter::Metadata
- Twitter::OEmbed
- Twitter::Place
- Twitter::ProfileBanner
- Twitter::RateLimit
- Twitter::Relationship
- Twitter::Request
- Twitter::Request::MultipartWithFile
- Twitter::Response
- Twitter::Response::ParseJson
- Twitter::Response::RaiseError
- Twitter::SavedSearch
- Twitter::SearchResults
- Twitter::Settings
- Twitter::Size
- Twitter::SourceUser
- Twitter::Status
- Twitter::Suggestion
- Twitter::TargetUser
- Twitter::Trend
- Twitter::Tweet
- Twitter::User
- Twitter::Version
- Enumerable
- Kernel

No matching classes.

# Twitter::SearchResults

### Public Instance Methods

collection() click to toggle source
Alias for: statuses
completed_in() click to toggle source

@return [Float]

    # File lib/twitter/search_results.rb, line 16
    def completed_in
      @attrs[:search_metadata][:completed_in] if search_metadata?
    end

max_id() click to toggle source

@return [Integer]

    # File lib/twitter/search_results.rb, line 21
    def max_id
      @attrs[:search_metadata][:max_id] if search_metadata?
    end

next_page?() click to toggle source
Alias for: next_results?
next_results?() click to toggle source

@return [Boolean]

    # File lib/twitter/search_results.rb, line 51
    def next_results?
      !@attrs[:search_metadata][:next_results].nil? if search_metadata?
    end

Also aliased as: next_page?
page() click to toggle source

@return [Integer]

    # File lib/twitter/search_results.rb, line 26
    def page
      @attrs[:search_metadata][:page] if search_metadata?
    end

query() click to toggle source

@return [String]

    # File lib/twitter/search_results.rb, line 31
    def query
      @attrs[:search_metadata][:query] if search_metadata?
    end

results() click to toggle source
Alias for: statuses
results_per_page() click to toggle source

@return [Integer]

    # File lib/twitter/search_results.rb, line 36
    def results_per_page
      @attrs[:search_metadata][:results_per_page] if search_metadata?
    end

Also aliased as: rpp
rpp() click to toggle source
Alias for: results_per_page
search_metadata?() click to toggle source

    # File lib/twitter/search_results.rb, line 41
    def search_metadata?
      !@attrs[:search_metadata].nil?
    end

since_id() click to toggle source

@return [Integer]

    # File lib/twitter/search_results.rb, line 46
    def since_id
      @attrs[:search_metadata][:since_id] if search_metadata?
    end

statuses() click to toggle source

@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

Also aliased as: collection, results

[Validate]

Generated with the Darkfish Rdoc Generator 2.