class TFS::Client

Public Class Methods

new(options={}) click to toggle source

Creates an instance of the client

# File lib/tfs/client.rb, line 13
def initialize(options={})
  TFS::Configuration.keys.each do |key|
    instance_variable_set(:"@#{key}", options[key] || TFS.instance_variable_get(:"@#{key}"))
  end
end

Public Instance Methods

connect() click to toggle source

Creates the connection to the data provider source

# File lib/tfs/client.rb, line 20
def connect
  @connection ||= @provider.new endpoint, client_options
end
method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/tfs/client.rb, line 34
def method_missing(method_name, *args, &block)
  return super unless @connection.respond_to? method_name
  @connection.send(method_name, *args, &block)
end
run() click to toggle source
# File lib/tfs/client.rb, line 30
def run
  @connection.execute
end