Module: TFS

Extended by:
Configuration
Defined in:
lib/tfs/configuration.rb,
lib/tfs.rb,
lib/tfs/builds.rb,
lib/tfs/client.rb,
lib/tfs/changes.rb,
lib/tfs/projects.rb,
lib/tfs/queryable.rb,
lib/tfs/changesets.rb,
lib/tfs/work_items.rb,
lib/tfs/query_engine.rb,
lib/tfs/class_helpers.rb

Overview

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

Defined Under Namespace

Modules: ClassHelpers, Configuration Classes: Builds, Changes, Changesets, Client, Projects, QueryEngine, Queryable, WorkItems

Constant Summary

Constants included from Configuration

Configuration::CONNECTION_DEFAULTS

Instance Attribute Summary

Attributes included from Configuration

#connection_options, #endpoint, #namespace, #password, #provider, #username

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configuration

configure, connection_options, endpoint, keys, namespace, options, password, provider, reset!, username

Class Method Details

.clientObject

Shortcut to create and connect a client



9
10
11
12
13
14
15
16
17
# 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

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


20
# 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) ⇒ Boolean

Returns:

  • (Boolean)


19
# File 'lib/tfs.rb', line 19

def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end