Parent

Class/Module Index [+]

Quicksearch

Twitter::Client

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

Attributes

rate_limit[R]

Public Class Methods

new(options={}) click to toggle source

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

Public Instance Methods

delete(path, params={}, options={}) click to toggle source

Perform an HTTP DELETE request

# File lib/twitter/client.rb, line 33
def delete(path, params={}, options={})
  request(:delete, path, params, options)
end
get(path, params={}, options={}) click to toggle source

Perform an HTTP GET request

# File lib/twitter/client.rb, line 38
def get(path, params={}, options={})
  request(:get, path, params, options)
end
post(path, params={}, options={}) click to toggle source

Perform an HTTP POST request

# File lib/twitter/client.rb, line 43
def post(path, params={}, options={})
  request(:post, path, params, options)
end
put(path, params={}, options={}) click to toggle source

Perform an HTTP UPDATE request

# File lib/twitter/client.rb, line 48
def put(path, params={}, options={})
  request(:put, path, params, options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.