class Gemstash::Web
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/gemstash/web.rb, line 10 def initialize(options = {}) raise ArgumentError unless options.is_a?(Hash) @gemstash_env = options[:gemstash_env] || Gemstash::Env.new @http_client_builder = options[:http_client_builder] || Gemstash::HTTPClient Gemstash::Env.current = @gemstash_env super() end
Public Instance Methods
http_client_for(server_url)
click to toggle source
# File lib/gemstash/web.rb, line 24 def http_client_for(server_url) @http_client_builder.for(server_url) end