Parent

Included Modules

Class/Module Index [+]

Quicksearch

Twitter::SearchResults

Attributes

attrs[R]
to_h[R]
to_hash[R]
to_hsh[R]

Public Class Methods

from_response(response, client, request_method, path, options) click to toggle source

Construct a new SearchResults object from a response hash

@param response [Hash] @param client [Twitter::REST::Client] @param path [String] @return [Twitter::SearchResults]

# File lib/twitter/search_results.rb, line 18
def from_response(response, client, request_method, path, options) # rubocop:disable ParameterLists
  new(response[:body], client, request_method, path, options)
end
new(attrs, client, request_method, path, options = {}) click to toggle source

Initializes a new SearchResults object

@param attrs [Hash] @param client [Twitter::REST::Client] @param request_method [String, Symbol] @param path [String] @param options [Hash] @return [Twitter::SearchResults]

# File lib/twitter/search_results.rb, line 31
def initialize(attrs, client, request_method, path, options = {}) # rubocop:disable ParameterLists
  @client = client
  @request_method = request_method.to_sym
  @path = path
  @options = options
  @collection = []
  self.attrs = attrs
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.