Class: Trajectory::User
- Inherits:
-
Object
- Object
- Trajectory::User
- Includes:
- Virtus
- Defined in:
- lib/trajectory/domain/user.rb
Instance Method Summary collapse
-
#==(other) ⇒ true, false
Returns true if two users are the sames i.e they share the same id attribute.
-
#created_at ⇒ DateTime
The creation date of the user account.
-
#email ⇒ String
The email of the user.
-
#gravatar_url ⇒ String
The url to the avatar image of the user (uses gravatar).
-
#id ⇒ Integer
The unique identifier of the User.
-
#name ⇒ String
The full name of the user.
-
#updated_at ⇒ DateTime
The last modification date of the user account.
Instance Method Details
#==(other) ⇒ true, false
Returns true if two users are the sames i.e they share the same id attribute
24 25 26 |
# File 'lib/trajectory/domain/user.rb', line 24 def ==(other) id == other.id end |
#created_at ⇒ DateTime
Returns the creation date of the user account.
11 |
# File 'lib/trajectory/domain/user.rb', line 11 attribute :created_at, DateTime |
#email ⇒ String
Returns the email of the user.
17 |
# File 'lib/trajectory/domain/user.rb', line 17 attribute :email, String |
#gravatar_url ⇒ String
Returns the url to the avatar image of the user (uses gravatar).
15 |
# File 'lib/trajectory/domain/user.rb', line 15 attribute :gravatar_url, String |
#id ⇒ Integer
Returns the unique identifier of the User.
7 |
# File 'lib/trajectory/domain/user.rb', line 7 attribute :id, Integer, default: lambda { |project, attribute| raise MissingAttributeError.new(project, :id) } |
#name ⇒ String
Returns the full name of the user.
9 |
# File 'lib/trajectory/domain/user.rb', line 9 attribute :name, String |
#updated_at ⇒ DateTime
Returns the last modification date of the user account.
13 |
# File 'lib/trajectory/domain/user.rb', line 13 attribute :updated_at, DateTime |