module NoaaWeatherClient::RestClientFactory
Public Class Methods
build_client(options = {})
click to toggle source
# File lib/noaa_weather_client/rest_client_factory.rb, line 6 def self.build_client(options = {}) provider = options.fetch(:provider, Net::HTTP) uri = URI(options.fetch(:url)) provider.new uri.host, uri.port end