Class: Levelup::Requests::CreateUser
- Inherits:
-
Base
- Object
- Templates::DataParcel
- Base
- Levelup::Requests::CreateUser
- Defined in:
- lib/levelup/requests/create_user.rb
Overview
Represents a request to create a new user with the specified list of permissions.
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#app_access_token ⇒ Object
Returns the value of attribute app_access_token.
-
#email ⇒ Object
An array of Item objects (or hashes representing them) representing all items purchased by this order.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#permission_keynames ⇒ Object
Returns the value of attribute permission_keynames.
Instance Method Summary collapse
Methods inherited from Base
#headers, instance_variables_excluded_from_hash, #send_to_api
Methods inherited from Templates::DataParcel
excluded?, #initialize, instance_variables_excluded_from_hash
Constructor Details
This class inherits a constructor from Levelup::Templates::DataParcel
Instance Attribute Details
#app_access_token ⇒ Object
Returns the value of attribute app_access_token.
6 7 8 |
# File 'lib/levelup/requests/create_user.rb', line 6 def app_access_token @app_access_token end |
#email ⇒ Object
An array of Item objects (or hashes representing them) representing all items purchased by this order.
9 10 11 |
# File 'lib/levelup/requests/create_user.rb', line 9 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
10 11 12 |
# File 'lib/levelup/requests/create_user.rb', line 10 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name.
11 12 13 |
# File 'lib/levelup/requests/create_user.rb', line 11 def last_name @last_name end |
#permission_keynames ⇒ Object
Returns the value of attribute permission_keynames.
12 13 14 |
# File 'lib/levelup/requests/create_user.rb', line 12 def @permission_keynames end |
Instance Method Details
#auth_type ⇒ Object
14 15 16 |
# File 'lib/levelup/requests/create_user.rb', line 14 def auth_type :app end |
#body ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/levelup/requests/create_user.rb', line 18 def body user_hash = { email: email, first_name: first_name, last_name: last_name } { user: user_hash, permission_keynames: } end |