module SingleConn

SingleConn

Public Instance Methods

conn_settings() click to toggle source
# File lib/single_conn.rb, line 11
def conn_settings
  @conn.settings
end
get(options = {}) click to toggle source
# File lib/single_conn.rb, line 15
def get(options = {})
  @conn.get(options)
end
init(url, settings = {}) click to toggle source
# File lib/single_conn.rb, line 7
def init(url, settings = {})
  @conn = HTTPConn.new(url, settings)
end
post(options = {}) click to toggle source
# File lib/single_conn.rb, line 19
def post(options = {})
  @conn.post(options)
end
start(uri = nil) { || ... } click to toggle source
# File lib/single_conn.rb, line 23
def start(uri = nil)
  uri = uri.nil? ? URI(@conn.url) : URI(uri)
  @conn.start(uri) { yield }
end