lib/egp_rates/bank.rb
def response
      response = Net::HTTP.get_response(@uri)
      if response.is_a? Net::HTTPRedirection
        response = Net::HTTP.get_response(URI.parse(response['location']))
      end
      fail ResponseError, response.code unless response.is_a? Net::HTTPSuccess
      response
    end
def response
      response = Net::HTTP.get_response(@uri)
      if response.is_a? Net::HTTPRedirection
        response = Net::HTTP.get_response(URI.parse(response['location']))
      end
      fail ResponseError, response.code unless response.is_a? Net::HTTPSuccess
      response
    end
def response response = Net :: HTTP . get_response ( @uri ) if response . is_a? Net :: HTTPRedirection response = Net :: HTTP . get_response ( URI . parse ( response [ 'location' ] ) ) end fail ResponseError , response . code unless response . is_a? Net :: HTTPSuccess response end
Make a call to the @uri to get the raw_response
 @return [Net::HTTPSuccess] of the raw response
 @raises [ResponseError] if response is not 200 OK
Make a call to the