Class: ManageIQ::API::Client::Identity
- Inherits:
-
Object
- Object
- ManageIQ::API::Client::Identity
- Defined in:
- lib/manageiq/api/client/identity.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#group_href ⇒ Object
readonly
Returns the value of attribute group_href.
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#role_href ⇒ Object
readonly
Returns the value of attribute role_href.
-
#tenant ⇒ Object
readonly
Returns the value of attribute tenant.
-
#user_href ⇒ Object
readonly
Returns the value of attribute user_href.
-
#userid ⇒ Object
readonly
Returns the value of attribute userid.
Instance Method Summary collapse
-
#initialize(identity_spec) ⇒ Identity
constructor
A new instance of Identity.
Constructor Details
#initialize(identity_spec) ⇒ Identity
Returns a new instance of Identity.
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/manageiq/api/client/identity.rb', line 15 def initialize(identity_spec) @userid = identity_spec["userid"] @name = identity_spec["name"] @user_href = identity_spec["user_href"] @group = identity_spec["group"] @group_href = identity_spec["group_href"] @role = identity_spec["role"] @role_href = identity_spec["role_href"] @tenant = identity_spec["tenant"] @groups = identity_spec["groups"] end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
8 9 10 |
# File 'lib/manageiq/api/client/identity.rb', line 8 def group @group end |
#group_href ⇒ Object (readonly)
Returns the value of attribute group_href.
9 10 11 |
# File 'lib/manageiq/api/client/identity.rb', line 9 def group_href @group_href end |
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
13 14 15 |
# File 'lib/manageiq/api/client/identity.rb', line 13 def groups @groups end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/manageiq/api/client/identity.rb', line 6 def name @name end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
10 11 12 |
# File 'lib/manageiq/api/client/identity.rb', line 10 def role @role end |
#role_href ⇒ Object (readonly)
Returns the value of attribute role_href.
11 12 13 |
# File 'lib/manageiq/api/client/identity.rb', line 11 def role_href @role_href end |
#tenant ⇒ Object (readonly)
Returns the value of attribute tenant.
12 13 14 |
# File 'lib/manageiq/api/client/identity.rb', line 12 def tenant @tenant end |
#user_href ⇒ Object (readonly)
Returns the value of attribute user_href.
7 8 9 |
# File 'lib/manageiq/api/client/identity.rb', line 7 def user_href @user_href end |
#userid ⇒ Object (readonly)
Returns the value of attribute userid.
5 6 7 |
# File 'lib/manageiq/api/client/identity.rb', line 5 def userid @userid end |