Class: WeatherApiAssignment::CustomQueryAuth
- Inherits:
-
Object
- Object
- WeatherApiAssignment::CustomQueryAuth
- Defined in:
- lib/weather_api_assignment/http/auth/custom_query_auth.rb
Overview
Utility class for custom query_parameter authorization.
Class Method Summary collapse
-
.apply(http_request) ⇒ Object
Add custom authentication to the request.
Class Method Details
.apply(http_request) ⇒ Object
Add custom authentication to the request. be added.
12 13 14 |
# File 'lib/weather_api_assignment/http/auth/custom_query_auth.rb', line 12 def self.apply(http_request) http_request.add_query_parameter('appid', Configuration.appid) end |