Class: Stackflame::Client
- Inherits:
-
Object
- Object
- Stackflame::Client
- Defined in:
- lib/stackflame/client.rb,
lib/stackflame/client/cli.rb,
lib/stackflame/client/version.rb
Defined Under Namespace
Classes: CLI
Constant Summary collapse
- DEFAULT_HOST =
'https://stackflame.herokuapp.com'- VERSION =
"0.1.0"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.post(url) ⇒ Object
8 9 10 |
# File 'lib/stackflame/client.rb', line 8 def self.post(url) self.new.post(url) end |
Instance Method Details
#post(url) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/stackflame/client.rb', line 12 def post(url) data = parse_url(url) response = post_stackflame_web( endpoint: File.join(load_host, 'graphs'), request: data['request'], js_path: data['data'], ) puts response.body end |