lib/createsend/administrator.rb
def update(new_email_address, name)
      options = {
        :query => { :email => @email_address },
        :body => {
          :EmailAddress => new_email_address,
          :Name => name
        }.to_json }
      put '/admins.json', 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)
      options = {
        :query => { :email => @email_address },
        :body => {
          :EmailAddress => new_email_address,
          :Name => name
        }.to_json }
      put '/admins.json', 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 ) options = { :query => { :email => @email_address } , :body => { :EmailAddress => new_email_address , :Name => name } . to_json } put '/admins.json' , options # Update @email_address, so this object can continue to be used reliably @email_address = new_email_address end
Updates the administator details.
Updates the administator details .