Class: FireEagle::User

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/fireeagle/user.rb

Instance Method Summary collapse

Instance Method Details

#best_guessObject



12
13
14
# File 'lib/fireeagle/user.rb', line 12

def best_guess
  @best_guess ||= locations.select { |loc| loc.best_guess? }.first
end

#locationsObject



16
17
18
# File 'lib/fireeagle/user.rb', line 16

def locations
  location_hierarchy && location_hierarchy.locations
end