Sha256: faa053f813b4678b752077dfbb7a1ae8878d9d9ebcd6de99cb9c5289c334e661
Contents?: true
Size: 327 Bytes
Versions: 2
Compression:
Stored size: 327 Bytes
Contents
require 'rest_client' module Qa::Authorities module WebServiceBase attr_accessor :raw_response # mix-in to retreive and parse JSON content from the web def get_json(url) r = RestClient.get url, request_options JSON.parse(r) end def request_options { accept: :json } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qa-0.5.0 | lib/qa/authorities/web_service_base.rb |
qa-0.4.3 | lib/qa/authorities/web_service_base.rb |