class Qualityforward::Client
Public Class Methods
new(api_key = nil)
click to toggle source
# File lib/qualityforward/client.rb, line 7 def initialize(api_key = nil) @@api_key = api_key unless nil end
Public Instance Methods
get(path)
click to toggle source
# File lib/qualityforward/client.rb, line 15 def get path res = Faraday.get url(path) JSON.parse res.body end
url(path)
click to toggle source
# File lib/qualityforward/client.rb, line 11 def url path return "#{@@url}#{path}?api_key=#{@@api_key}" end