Class: WeatherApiAssignment::WeatherApiAssignmentClient
- Inherits:
-
Object
- Object
- WeatherApiAssignment::WeatherApiAssignmentClient
- Defined in:
- lib/weather_api_assignment/weather_api_assignment_client.rb
Overview
weather_api_assignment client class.
Instance Method Summary collapse
-
#config ⇒ Configuration
Returns the configuration class for easy access.
-
#initialize(appid: '178db63aed00f6e4daaa06009b04438b') ⇒ WeatherApiAssignmentClient
constructor
Initializer with authentication and configuration parameters.
-
#weather_ap_is ⇒ WeatherAPIsController
Singleton access to weather_ap_is controller.
Constructor Details
#initialize(appid: '178db63aed00f6e4daaa06009b04438b') ⇒ WeatherApiAssignmentClient
Initializer with authentication and configuration parameters.
22 23 24 25 |
# File 'lib/weather_api_assignment/weather_api_assignment_client.rb', line 22 def initialize(appid: '178db63aed00f6e4daaa06009b04438b') Configuration.appid = appid if appid end |
Instance Method Details
#config ⇒ Configuration
Returns the configuration class for easy access.
17 18 19 |
# File 'lib/weather_api_assignment/weather_api_assignment_client.rb', line 17 def config Configuration end |
#weather_ap_is ⇒ WeatherAPIsController
Singleton access to weather_ap_is controller.
11 12 13 |
# File 'lib/weather_api_assignment/weather_api_assignment_client.rb', line 11 def weather_ap_is WeatherAPIsController.instance end |