Class: Wreckster::Graph

Inherits:
Object
  • Object
show all
Defined in:
lib/wreckster/graph.rb

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Graph

Returns a new instance of Graph.



3
4
5
6
# File 'lib/wreckster/graph.rb', line 3

def initialize url
  @url     = url
  @payload = nil
end

Instance Method Details

#traversalsObject



8
9
10
11
12
# File 'lib/wreckster/graph.rb', line 8

def traversals
  t = payload['traversals']
  t = t.keys if Hash === t
  t.map { |name| Traversal.new(@url, name) }
end