Sha256: a9c759252d7892c97e0fe83ba267e1247f6567fe1f8833221e6029acdb8e3d51
Contents?: true
Size: 467 Bytes
Versions: 7
Compression:
Stored size: 467 Bytes
Contents
module EventMachine module Twitter class Proxy attr_reader :user, :password, :uri def initialize(options = {}) @user = options.delete(:user) @password = options.delete(:password) @uri = options.delete(:uri) end def header ["#{@user}:#{@password}"].pack('m').delete("\r\n") if credentials? end private def credentials? @user && @password end end end end
Version data entries
7 entries across 7 versions & 1 rubygems