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
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
Generated with the Darkfish Rdoc Generator 2.