lib/turntabler/authorized_user.rb
def update_profile(attributes = {})
      assert_valid_keys(attributes, :name, :twitter_id, :facebook_url, :website, :about, :top_artists, :hangout)

      # Convert attribute names over to their Turntable equivalent
      {:twitter_id => :twitter, :facebook_url => :facebook, :top_artists => :topartists}.each do |from, to|
        attributes[to] = attributes.delete(from) if attributes[from]
      end

      api('user.modify_profile', attributes)
      self.attributes = attributes
      true
    end
def update_profile(attributes = {})
      assert_valid_keys(attributes, :name, :twitter_id, :facebook_url, :website, :about, :top_artists, :hangout)

      # Convert attribute names over to their Turntable equivalent
      {:twitter_id => :twitter, :facebook_url => :facebook, :top_artists => :topartists}.each do |from, to|
        attributes[to] = attributes.delete(from) if attributes[from]
      end

      api('user.modify_profile', attributes)
      self.attributes = attributes
      true
    end
def update_profile ( attributes = { } ) assert_valid_keys ( attributes , :name , :twitter_id , :facebook_url , :website , :about , :top_artists , :hangout ) # Convert attribute names over to their Turntable equivalent { :twitter_id => :twitter , :facebook_url => :facebook , :top_artists => :topartists } . each do | from , to | attributes [ to ] = attributes . delete ( from ) if attributes [ from ] end api ( 'user.modify_profile' , attributes ) self . attributes = attributes true end
Updates the user's profile information
Updates the user s profile information