Sha256: f92e84d21eada9d3a173af68f0e157660593bb1c549ca9bacfa54880232799f3
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
# frozen_string_literal: true require 'json' require 'net/https' module Tempo class RequestClient # Returns the response if the request was successful (HTTP::2xx) and # raises a Tempo::HTTPError if it was not successful, with the response # attached. def request(*args) response = make_request(*args) raise HTTPError, response unless response.is_a?(Net::HTTPSuccess) response end def make_request(*args) raise NotImplementedError end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tempo-ruby-0.1.0 | lib/tempo/request_client.rb |