class Fog::OpenStack::Auth::Name
Public Instance Methods
identity()
click to toggle source
# File lib/fog/openstack/auth/name.rb, line 26 def identity return to_h(:id) unless id.nil? return to_h(:name) unless name.nil? raise Fog::OpenStack::Auth::CredentialsError, "#{self.class}: No available id or name" end
to_h(var)
click to toggle source
# File lib/fog/openstack/auth/name.rb, line 32 def to_h(var) {var => send(var).to_s} end