Class: OpenStack::Identity::User
- Defined in:
- lib/openstack/identity/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tenant_id ⇒ Object
readonly
Returns the value of attribute tenant_id.
Instance Method Summary collapse
-
#initialize(tenant_info = {}) ⇒ User
constructor
A new instance of User.
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
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'lib/openstack/identity/user.rb', line 8 def email @email end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/openstack/identity/user.rb', line 7 def enabled @enabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/openstack/identity/user.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/openstack/identity/user.rb', line 5 def name @name end |
#tenant_id ⇒ Object (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 |