lib/createsend/person.rb
def update(new_email_address, name, access_level, password)
      options = {
        :query => { :email => @email_address },
        :body => {
          :EmailAddress => new_email_address,
          :Name => name,
          :AccessLevel => access_level,
          :Password => password }.to_json }
      put uri_for(client_id), options
      # Update @email_address, so this object can continue to be used reliably
      @email_address = new_email_address
    end
def update(new_email_address, name, access_level, password)
      options = {
        :query => { :email => @email_address },
        :body => {
          :EmailAddress => new_email_address,
          :Name => name,
          :AccessLevel => access_level,
          :Password => password }.to_json }
      put uri_for(client_id), options
      # Update @email_address, so this object can continue to be used reliably
      @email_address = new_email_address
    end
def update ( new_email_address , name , access_level , password ) options = { :query => { :email => @email_address } , :body => { :EmailAddress => new_email_address , :Name => name , :AccessLevel => access_level , :Password => password } . to_json } put uri_for ( client_id ) , options # Update @email_address, so this object can continue to be used reliably @email_address = new_email_address end
Updates the person details. password is optional and will only be
 updated if supplied
Updates the person details . password is optional and will only be updated if supplied