class Misty::Auth::Name
Public Instance Methods
identity()
click to toggle source
# File lib/misty/auth/name.rb, line 21 def identity return to_h(:id) unless id.nil? return to_h(:name) unless name.nil? raise Misty::Config::CredentialsError, "#{self.class}: No available id or name" end
to_h(var)
click to toggle source
# File lib/misty/auth/name.rb, line 27 def to_h(var) { var => self.send(var) } end