Class: LWS::Auth::User

Inherits:
Generic::Model show all
Defined in:
lib/lws/auth.rb

Overview

The user class

This class is a nested/associated class of Account or Token only! It cannot be accessed directly.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ User

Returns a new instance of User.



297
298
299
# File 'lib/lws/auth.rb', line 297

def initialize(attrs = {})
  super
end

Instance Attribute Details

#accountAccount

Returns the account that the user belongs to.

Returns:

  • (Account)

    the account that the user belongs to



286
# File 'lib/lws/auth.rb', line 286

belongs_to :account

#account_idFixnum

Returns the ID of the account that the user belongs to.

Returns:

  • (Fixnum)

    the ID of the account that the user belongs to



# File 'lib/lws/auth.rb', line 288


#created_atString

Returns the timestamp of when the user was created.

Returns:

  • (String)

    the timestamp of when the user was created



# File 'lib/lws/auth.rb', line 291


#emailString

Returns the email address of the user.

Returns:

  • (String)

    the email address of the user



# File 'lib/lws/auth.rb', line 278


#idFixnum (readonly)

Returns the (unique) ID of the user.

Returns:

  • (Fixnum)

    the (unique) ID of the user



# File 'lib/lws/auth.rb', line 275


#password_digestString

Returns the digested version of the password of the user.

Returns:

  • (String)

    the digested version of the password of the user



# File 'lib/lws/auth.rb', line 281


#updated_atString

Returns the timestamp of when the user was last updated.

Returns:

  • (String)

    the timestamp of when the user was last updated



297
298
299
# File 'lib/lws/auth.rb', line 297

def initialize(attrs = {})
  super
end