class OmniAuth::AuthHash::InfoHash

Public Class Methods

subkey_class() click to toggle source
# File lib/omniauth/auth_hash.rb, line 28
def self.subkey_class; Hashie::Mash end

Public Instance Methods

name() click to toggle source
# File lib/omniauth/auth_hash.rb, line 30
def name
  return self[:name] if self[:name]
  return "#{first_name} #{last_name}".strip if first_name? || last_name?
  return nickname if nickname?
  return email if email?
  nil
end
name?() click to toggle source
# File lib/omniauth/auth_hash.rb, line 38
def name?; !!name end
to_hash() click to toggle source
# File lib/omniauth/auth_hash.rb, line 44
def to_hash
  hash = super
  hash['name'] ||= name
  hash
end
valid?() click to toggle source
# File lib/omniauth/auth_hash.rb, line 40
def valid?
  name?
end