Sha256: 8cd47b4394bf1b996001131e73123bb54e91ab693fe185e9cdf489f9f4c04876

Contents?: true

Size: 230 Bytes

Versions: 4

Compression:

Stored size: 230 Bytes

Contents

module OpenWeatherAPI
  def self.configure(&block)
    raise ArgumentError, 'No block was given.' unless block

    api = Rails.configuration.open_weather_api = OpenWeatherAPI::API.new
    block.call(api)
    api
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
open-weather-api-0.0.6 lib/open-weather-api/config.rb
open-weather-api-0.0.5 lib/open-weather-api/config.rb
open-weather-api-0.0.4 lib/open-weather-api/config.rb
open-weather-api-0.0.3 lib/open-weather-api/config.rb