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
-
#account_user(id) ⇒ Object
Returns account user details for a given id.
-
#account_users ⇒ Object
List all account users.
-
#create_account_user(options = {}) ⇒ Object
Create a new account user.
-
#delete_account_user(id) ⇒ Object
Remove an account user.
-
#update_account_user(id, options = {}) ⇒ Object
Change an account user.
Instance Method Details
#account_user(id) ⇒ Object
Returns account user details for a given id
14 15 16 |
# File 'lib/surveygizmo/client/account_user.rb', line 14 def account_user(id) get("accountuser/#{id}") end |
#account_users ⇒ Object
List all account users
8 9 10 |
# File 'lib/surveygizmo/client/account_user.rb', line 8 def account_users get('accountuser') end |
#create_account_user(options = {}) ⇒ Object
Create a new account user
20 21 22 |
# File 'lib/surveygizmo/client/account_user.rb', line 20 def create_account_user( = {}) post('accountuser?_method=PUT', ) end |
#delete_account_user(id) ⇒ Object
Remove an account user
26 27 28 |
# File 'lib/surveygizmo/client/account_user.rb', line 26 def delete_account_user(id) post("accountuser/#{id}?_method=DELETE") end |
#update_account_user(id, options = {}) ⇒ Object
Change an account user
33 34 35 |
# File 'lib/surveygizmo/client/account_user.rb', line 33 def update_account_user(id, = {}) post("accountuser/#{id}?_method=POST", ) end |