Class: NoaaWeatherClient::CLI::Coordinate
- Inherits:
-
Struct
- Object
- Struct
- NoaaWeatherClient::CLI::Coordinate
- Defined in:
- lib/noaa_weather_client/cli.rb
Instance Attribute Summary collapse
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
Instance Method Summary collapse
Instance Attribute Details
#latitude ⇒ Object
Returns the value of attribute latitude
44 45 46 |
# File 'lib/noaa_weather_client/cli.rb', line 44 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude
44 45 46 |
# File 'lib/noaa_weather_client/cli.rb', line 44 def longitude @longitude end |
Instance Method Details
#valid? ⇒ Boolean
45 46 47 |
# File 'lib/noaa_weather_client/cli.rb', line 45 def valid? latitude && longitude rescue false end |