Class: FireEagle::User
- Inherits:
-
Object
- Object
- FireEagle::User
- Includes:
- HappyMapper
- Defined in:
- lib/fireeagle/user.rb
Instance Method Summary collapse
Instance Method Details
#best_guess ⇒ Object
12 13 14 |
# File 'lib/fireeagle/user.rb', line 12 def best_guess @best_guess ||= locations.select { |loc| loc.best_guess? }.first end |
#locations ⇒ Object
16 17 18 |
# File 'lib/fireeagle/user.rb', line 16 def locations location_hierarchy && location_hierarchy.locations end |