Sha256: 34b9b487f3277164078450d08c97c081b368e8ca3d5818ae8a253916b564a69d

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

require 'rest_client'

module Qa::Authorities
  class WebServiceBase < Base
    attr_accessor :raw_response

    # mix-in to retreive and parse JSON content from the web
    def get_json(url)
      r = RestClient.get url, {accept: :json}
      JSON.parse(r)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qa-0.4.0 lib/qa/authorities/web_service_base.rb