Class: Jelastic::User
- Inherits:
-
Object
- Object
- Jelastic::User
- Defined in:
- lib/jelastic/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(params = {}) ⇒ User
Returns a new instance of User.
5 6 7 8 9 10 |
# File 'lib/jelastic/user.rb', line 5 def initialize(params = {}) @uid = params.fetch('uid') @email = params.fetch('email') @session = params.fetch('session') @status = params.fetch('status') end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/jelastic/user.rb', line 3 def email @email end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
3 4 5 |
# File 'lib/jelastic/user.rb', line 3 def session @session end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/jelastic/user.rb', line 3 def status @status end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
3 4 5 |
# File 'lib/jelastic/user.rb', line 3 def uid @uid end |