Class: Jelastic::User

Inherits:
Object
  • Object
show all
Defined in:
lib/jelastic/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/jelastic/user.rb', line 3

def email
  @email
end

#sessionObject (readonly)

Returns the value of attribute session.



3
4
5
# File 'lib/jelastic/user.rb', line 3

def session
  @session
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/jelastic/user.rb', line 3

def status
  @status
end

#uidObject (readonly)

Returns the value of attribute uid.



3
4
5
# File 'lib/jelastic/user.rb', line 3

def uid
  @uid
end