Class: Country
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Country
- Defined in:
- lib/earth/locality/country.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#flight_route_inefficiency_factor ⇒ Object
if we don’t have a country-specific flight route inefficiency factor, use the fallback.
Class Method Details
.united_states ⇒ Object
11 12 13 |
# File 'lib/earth/locality/country.rb', line 11 def united_states find_by_iso_3166_code('US') end |
Instance Method Details
#flight_route_inefficiency_factor ⇒ Object
if we don’t have a country-specific flight route inefficiency factor, use the fallback
17 18 19 20 21 22 23 |
# File 'lib/earth/locality/country.rb', line 17 def flight_route_inefficiency_factor if specific_frif = super specific_frif else Country.fallback.flight_route_inefficiency_factor end end |