Sha256: 151b84fffad64e507e1f593a12a8a679657d553e0616156393ee42304dab135d
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
require 'rest_client' require 'deprecation' module Qa::Authorities class WebServiceBase attr_accessor :response, :raw_response # mix-in to retreive and parse JSON content from the web def get_json(url) r = RestClient.get url, {accept: :json} self.response = JSON.parse(r) end # This method should be removed # use #response instead def results self.response end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qa-0.3.0 | lib/qa/authorities/web_service_base.rb |
qa-0.2.1 | lib/qa/authorities/web_service_base.rb |
qa-0.1.0 | lib/qa/authorities/web_service_base.rb |