alakra/ndfd-weather-forecast-client

View on GitHub
lib/ndfd.rb

Summary

Maintainability
A
0 mins
Test Coverage
module NDFD
  module_function

  def env
    @@env ||= (ENV['ENV'] || :production)
  end

  def client(options = {})
    NDFD::Client.new(options)
  end

  def root_path
    File.expand_path(File.join(File.dirname(__FILE__), "../"))
  end

  def vendor_path
    File.join(root_path, "vendor")
  end
end

require 'ndfd/dwml'
require 'ndfd/client'
require 'ndfd/client/version'