Class: Fog::OpenStack::Auth::User
- Includes:
- Domain
- Defined in:
- lib/fog/openstack/auth/name.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
Attributes included from Domain
Attributes inherited from Name
Instance Method Summary collapse
Methods inherited from Name
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
54 55 56 |
# File 'lib/fog/openstack/auth/name.rb', line 54 def password @password end |
Instance Method Details
#identity ⇒ Object
56 57 58 59 60 61 |
# File 'lib/fog/openstack/auth/name.rb', line 56 def identity data = super raise CredentialsError, "#{self.class}: No password available" if password.nil? data.merge!(to_h(:password)) {:user => data} end |