Class: Trackington::User
- Inherits:
-
Object
- Object
- Trackington::User
- Defined in:
- lib/trackington/app/users.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id, email) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(id, email) ⇒ User
Returns a new instance of User.
102 103 104 105 |
# File 'lib/trackington/app/users.rb', line 102 def initialize(id, email) @id = id @email = email end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
100 101 102 |
# File 'lib/trackington/app/users.rb', line 100 def email @email end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
100 101 102 |
# File 'lib/trackington/app/users.rb', line 100 def id @id end |