Class: WeatherApiAssignment::WeatherApiAssignmentClient

Inherits:
Object
  • Object
show all
Defined in:
lib/weather_api_assignment/weather_api_assignment_client.rb

Overview

weather_api_assignment client class.

Instance Method Summary collapse

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

#configConfiguration

Returns the configuration class for easy access.

Returns:



17
18
19
# File 'lib/weather_api_assignment/weather_api_assignment_client.rb', line 17

def config
  Configuration
end

#weather_ap_isWeatherAPIsController

Singleton access to weather_ap_is controller.

Returns:



11
12
13
# File 'lib/weather_api_assignment/weather_api_assignment_client.rb', line 11

def weather_ap_is
  WeatherAPIsController.instance
end