class BtcRatesApi
Public Class Methods
make_http_call(api)
click to toggle source
# File lib/btcrates/btc_rates_api.rb, line 2 def self.make_http_call(api) @response = HTTParty.get(api) return @response.body if @response.success? raise BtcRates::HttpError 'Can not complete HTTP request at this time.' end