module TFS

Lots of these ideas were stolen from the spectacular [sferik/twitter gem](github.com/sferik/twitter) gem

Public Class Methods

client() click to toggle source

Shortcut to create and connect a client

# File lib/tfs.rb, line 9
def client
  @client = begin
    client = Client.new(options)
    client.connect
    client
  end unless defined?(@client) && @client.hash == options.hash

  @client
end
respond_to?(method_name, include_private=false) click to toggle source
Calls superclass method
# File lib/tfs.rb, line 20
def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end
respond_to_missing?(method_name, include_private=false) click to toggle source
# File lib/tfs.rb, line 19
def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end

Private Class Methods

method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/tfs.rb, line 23
def method_missing(method_name, *args, &block)
  return super unless client.respond_to?(method_name)
  client.send(method_name, *args, &block)
end