class Ultron::Connection
Public Class Methods
perform(url)
click to toggle source
# File lib/ultron/connection.rb, line 6 def self.perform url c = Curl::Easy.new("%s" % url) c.headers = { 'Accept' => 'application/json', 'User-agent' => 'Ultron v%s: https://rubygems.org/gems/ultron' % Ultron::VERSION } c.perform JSON.parse c.body_str end