class Github::API

def _process_basic_auth(auth)

Extract login and password from basic_auth parameter
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