Object
Wrapper for the Twitter REST API
@note All methods have been separated into modules and follow the same grouping used in {dev.twitter.com/doc the Twitter API Documentation}. @see dev.twitter.com/pages/every_developer
Initializes a new Client object
@param options [Hash] @return [Twitter::Client]
# File lib/twitter/client.rb, line 25 def initialize(options={}) Twitter::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", options[key] || Twitter.instance_variable_get(:"@#{key}")) end @rate_limit = Twitter::RateLimit.new end
Perform an HTTP DELETE request
# File lib/twitter/client.rb, line 33 def delete(path, params={}, options={}) request(:delete, path, params, options) end
Perform an HTTP GET request
# File lib/twitter/client.rb, line 38 def get(path, params={}, options={}) request(:get, path, params, options) end
Generated with the Darkfish Rdoc Generator 2.