Class: ProntoForms::User
Overview
A ProntoForms user account.
Instance Attribute Summary
Attributes inherited from Resource
Class Method Summary collapse
Instance Method Summary collapse
-
#display_name ⇒ String
Get a display name consisting of the first name followed by last name e.g.
-
#email ⇒ String
The user’s email address.
-
#first_name ⇒ String
The user’s first name.
-
#id ⇒ String
The User identifier.
-
#last_name ⇒ String
The user’s last name.
-
#locale ⇒ String
The user’s preferred locale.
-
#role ⇒ String
The user’s role.
-
#username ⇒ String
The user’s username.
Methods inherited from Resource
#initialize, property, #resource_name
Constructor Details
This class inherits a constructor from ProntoForms::Resource
Class Method Details
.resource_name ⇒ Object
8 9 10 |
# File 'lib/prontoforms/user.rb', line 8 def self.resource_name 'users' end |
Instance Method Details
#display_name ⇒ String
Get a display name consisting of the first name followed by last name e.g. “John Doe”
30 31 32 |
# File 'lib/prontoforms/user.rb', line 30 def display_name "#{first_name} #{last_name}" end |
#email ⇒ String
Returns The user’s email address.
19 |
# File 'lib/prontoforms/user.rb', line 19 property :email, key: 'email' |
#first_name ⇒ String
Returns The user’s first name.
21 |
# File 'lib/prontoforms/user.rb', line 21 property :first_name, key: 'firstName' |
#id ⇒ String
Returns The User identifier.
13 |
# File 'lib/prontoforms/user.rb', line 13 property :id, key: 'identifier' |
#last_name ⇒ String
Returns The user’s last name.
23 |
# File 'lib/prontoforms/user.rb', line 23 property :last_name, key: 'lastName' |
#locale ⇒ String
Returns The user’s preferred locale.
25 |
# File 'lib/prontoforms/user.rb', line 25 property :locale, key: 'locale' |
#role ⇒ String
Returns The user’s role.
17 |
# File 'lib/prontoforms/user.rb', line 17 property :role, key: 'role' |
#username ⇒ String
Returns The user’s username.
15 |
# File 'lib/prontoforms/user.rb', line 15 property :username, key: 'username' |