Class: User
- Inherits:
-
Object
- Object
- User
- Defined in:
- lib/slimtimercli/entities.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Class Method Summary collapse
Instance Method Summary collapse
- #_serialize ⇒ Object
-
#initialize(e = nil, p = nil) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(e = nil, p = nil) ⇒ User
Returns a new instance of User.
55 56 57 58 |
# File 'lib/slimtimercli/entities.rb', line 55 def initialize(e=nil, p=nil) @email = e @password = p end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
53 54 55 |
# File 'lib/slimtimercli/entities.rb', line 53 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
53 54 55 |
# File 'lib/slimtimercli/entities.rb', line 53 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
53 54 55 |
# File 'lib/slimtimercli/entities.rb', line 53 def password @password end |
#user_id ⇒ Object
Returns the value of attribute user_id.
53 54 55 |
# File 'lib/slimtimercli/entities.rb', line 53 def user_id @user_id end |
Class Method Details
Instance Method Details
#_serialize ⇒ Object
68 69 70 |
# File 'lib/slimtimercli/entities.rb', line 68 def _serialize {"user" => {"email" => email, "password" => password}} end |