class Github::API
def _process_basic_auth(auth)
def _process_basic_auth(auth) case auth when String self.login = auth.split(':').first self.password = auth.split(':').last when Hash self.login = auth[:login] self.password = auth[:password] end end
def _process_basic_auth(auth) case auth when String self.login = auth.split(':').first self.password = auth.split(':').last when Hash self.login = auth[:login] self.password = auth[:password] end end