Class: TFSGraph::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/tfs_graph/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#graph(repo_type: nil) ⇒ Object

Returns the value of attribute graph.

Raises:

  • (ArgumentError)


3
4
5
# File 'lib/tfs_graph/config.rb', line 3

def graph
  @graph
end

#tfsObject

Returns the value of attribute tfs.



3
4
5
# File 'lib/tfs_graph/config.rb', line 3

def tfs
  @tfs
end

Instance Method Details

#redis(url: url, namespace: namespace) ⇒ Object



5
6
7
8
9
# File 'lib/tfs_graph/config.rb', line 5

def redis(url: url, namespace: namespace)
  ServerRegistry.register do |r|
    r.redis url: url, namespace: namespace
  end
end