Class: OpenStack::Identity::User

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tenant_info = {}) ⇒ User

Returns a new instance of User.



10
11
12
13
14
15
16
# File 'lib/openstack/identity/user.rb', line 10

def initialize(tenant_info = {})
  @id = tenant_info['id']
  @name = tenant_info['name']
  @tenant_id = tenant_info['tenant_id']
  @email = tenant_info['email']
  @enabled = tenant_info['enabled']
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



8
9
10
# File 'lib/openstack/identity/user.rb', line 8

def email
  @email
end

#enabledObject (readonly)

Returns the value of attribute enabled.



7
8
9
# File 'lib/openstack/identity/user.rb', line 7

def enabled
  @enabled
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/openstack/identity/user.rb', line 4

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/openstack/identity/user.rb', line 5

def name
  @name
end

#tenant_idObject (readonly)

Returns the value of attribute tenant_id.



6
7
8
# File 'lib/openstack/identity/user.rb', line 6

def tenant_id
  @tenant_id
end