Class: Vfrmap::Location
- Inherits:
-
Object
- Object
- Vfrmap::Location
- Defined in:
- lib/vfrmap/location.rb
Class Method Summary collapse
Class Method Details
.factory(location_string) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/vfrmap/location.rb', line 5 def self.factory(location_string) coordinates = try_coordinates(location_string) return coordinates if coordinates airport = try_airport(location_string) return airport if airport end |