lib/turntabler/client.rb
def user_by_name(name)
      data = api('user.get_id', :name => name)
      user = self.user(data['userid'])
      user.attributes = {'name' => name}
      user
    end
def user_by_name(name)
      data = api('user.get_id', :name => name)
      user = self.user(data['userid'])
      user.attributes = {'name' => name}
      user
    end
def user_by_name ( name ) data = api ( 'user.get_id' , :name => name ) user = self . user ( data [ 'userid' ] ) user . attributes = { 'name' => name } user end
Gets the user with the given DJ name.  This should only be used if the id
 of the user is unknown.

 @param [String] name The user's DJ name
 @return [Turntabler::User]
 @raise [Turntabler::Error] if the command fails
 @example
   client.user_by_name('DJSpinster')   # => #<Turntabler::User id="a34bd..." ...>
Gets the user with the given DJ name . This should only be used if the id of the user is unknown .