Class: G5AuthenticationClient::User

Inherits:
Modelish::Base
  • Object
show all
Defined in:
lib/g5_authentication_client/user.rb

Overview

A G5 Authentication User

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#emailString

The user’s email address.

Returns:

  • (String)


11
# File 'lib/g5_authentication_client/user.rb', line 11

property :email, type: String, required: true

#first_nameString

The user’s first name. Not required to create a user.

Returns:

  • (String)


31
# File 'lib/g5_authentication_client/user.rb', line 31

property :first_name, type: String

#idInteger

The user’s id. Not required to create a user.

Returns:

  • (Integer)


26
# File 'lib/g5_authentication_client/user.rb', line 26

property :id, type: Integer

#last_nameString

The user’s last name. Not required to create a user.

Returns:

  • (String)


36
# File 'lib/g5_authentication_client/user.rb', line 36

property :last_name, type: String

#organization_nameString

The user’s organization name. Not required to create a user.

Returns:

  • (String)


46
# File 'lib/g5_authentication_client/user.rb', line 46

property :organization_name, type: String

#passwordString

The user’s password. Required to create a user.

Returns:

  • (String)


16
# File 'lib/g5_authentication_client/user.rb', line 16

property :password, type: String

#password_confirmationString

The user’s password_confirmation.

Returns:

  • (String)


21
# File 'lib/g5_authentication_client/user.rb', line 21

property :password_confirmation, type: String

#phone_numberString

The user’s phone number. Not required to create a user.

Returns:

  • (String)


51
# File 'lib/g5_authentication_client/user.rb', line 51

property :phone_number, type: String

#titleString

The user’s title. Not required to create a user.

Returns:

  • (String)


41
# File 'lib/g5_authentication_client/user.rb', line 41

property :title, type: String

Instance Method Details

#validate_for_create!Object

Raises:

  • (ArgumentError)


53
54
55
56
# File 'lib/g5_authentication_client/user.rb', line 53

def validate_for_create!
  validate!
  raise ArgumentError.new("Password required for new user.") unless !password.nil?
end