Class: Jsm::Drawer::Graphviz
- Inherits:
-
Object
- Object
- Jsm::Drawer::Graphviz
- Defined in:
- lib/jsm/drawer/graphviz.rb
Constant Summary collapse
- API_URL =
"https://chart.googleapis.com/chart"
Class Method Summary collapse
Instance Method Summary collapse
- #generate_url ⇒ Object
-
#initialize(state_machine) ⇒ Graphviz
constructor
A new instance of Graphviz.
Constructor Details
Class Method Details
.generate_url(state_machine) ⇒ Object
3 4 5 |
# File 'lib/jsm/drawer/graphviz.rb', line 3 def self.generate_url(state_machine) new(state_machine).generate_url end |
Instance Method Details
#generate_url ⇒ Object
12 13 14 15 |
# File 'lib/jsm/drawer/graphviz.rb', line 12 def generate_url diagram = @diagraph "#{API_URL}?cht=gv&chl=digraph{#{diagram}}" end |