Module: Surveygizmo::Client::AccountUser

Included in:
Surveygizmo::Client
Defined in:
lib/surveygizmo/client/account_user.rb

Overview

Defines methods related to a SurveyGizmo account user (not to be confused with a Contact)

Instance Method Summary (collapse)

Instance Method Details

- (Object) account_user(id)

Returns account user details for a given id



14
15
16
# File 'lib/surveygizmo/client/account_user.rb', line 14

def (id)
  get("accountuser/#{id}")
end

- (Object) account_users

List all account users



8
9
10
# File 'lib/surveygizmo/client/account_user.rb', line 8

def 
  get('accountuser')
end

- (Object) create_account_user(options = {})

Create a new account user



20
21
22
# File 'lib/surveygizmo/client/account_user.rb', line 20

def (options = {})
  post('accountuser?_method=PUT', options)
end

- (Object) delete_account_user(id)

Remove an account user



26
27
28
# File 'lib/surveygizmo/client/account_user.rb', line 26

def (id)
  post("accountuser/#{id}?_method=DELETE")
end

- (Object) update_account_user(id, options = {})

Change an account user



33
34
35
# File 'lib/surveygizmo/client/account_user.rb', line 33

def (id, options = {})
  post("accountuser/#{id}?_method=POST", options)
end