Class: OpenWeatherAPI::Resources::Handlers::Geolocation

Inherits:
QueryHandler
  • Object
show all
Defined in:
lib/open-weather-api/resources/handlers/base.rb

Instance Method Summary collapse

Methods inherited from QueryHandler

#handle, #initialize

Constructor Details

This class inherits a constructor from OpenWeatherAPI::Resources::Handlers::QueryHandler

Instance Method Details

#can?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/open-weather-api/resources/handlers/base.rb', line 78

def can?
  latitude != nil && longitude != nil
end