Class: Barometer::Data::Location
- Inherits:
-
Coordinates
- Object
- Coordinates
- Barometer::Data::Location
- Defined in:
- lib/barometer/data/location.rb
Instance Method Summary collapse
Methods inherited from Coordinates
Instance Method Details
#to_s ⇒ Object
13 14 15 16 |
# File 'lib/barometer/data/location.rb', line 13 def to_s [name, city, state_name || state_code, country || country_code].compact.join(', ') end |