Sha256: 321d65ff4acb945bbf0e335230ec182a170bf687c7548449a76b9b712133a552
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
require 'prontoforms/resource' module ProntoForms class User < Resource def self.resource_name() 'users'; end # @return [String] The User identifier property :id, key: 'identifier' # @return [String] The user's username property :username, key: 'username' # @return [String] The user's role property :role, key: 'role' # @return [String] The user's email address property :email, key: 'email' # @return [String] The user's first name property :first_name, key: 'firstName' # @return [String] The user's last name property :last_name, key: 'lastName' # @return [String] The user's preferred locale property :locale, key: 'locale' # Get a display name consisting of the first name followed by last name # e.g. "John Doe" # @return [String] The display name for the user def display_name "#{first_name} #{last_name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prontoforms-0.3.1 | lib/prontoforms/user.rb |