Class: Fog::OpenStack::Auth::User

Inherits:
Name
  • Object
show all
Includes:
Domain
Defined in:
lib/fog/openstack/auth/name.rb

Instance Attribute Summary collapse

Attributes included from Domain

#domain

Attributes inherited from Name

#id, #name

Instance Method Summary collapse

Methods inherited from Name

#to_h

Instance Attribute Details

#passwordObject

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

#identityObject

Raises:



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