Module: NDFD

Defined in:
lib/ndfd/dwml.rb,
lib/ndfd.rb,
lib/ndfd/client.rb,
lib/ndfd/client/error.rb,
lib/ndfd/client/query.rb,
lib/ndfd/dwml/location.rb,
lib/ndfd/client/version.rb,
lib/ndfd/dwml/time_layout.rb,
lib/ndfd/dwml/head_extractor.rb,
lib/ndfd/client/help_console.rb,
lib/ndfd/dwml/data_extractor.rb,
lib/ndfd/dwml/parameter_extractor.rb,
lib/ndfd/client/query/select_query.rb,
lib/ndfd/client/query/query_property.rb,
lib/ndfd/client/query/query_utilities.rb,
lib/ndfd/client/query/select_by_days_query.rb,
lib/ndfd/client/query/selection_attributes.rb,
lib/ndfd/client/query/select_coordinates_by_zip_query.rb,
lib/ndfd/client/query/select_corner_coordinates_query.rb,
lib/ndfd/client/query/select_square_coordinates_query.rb,
lib/ndfd/client/query/select_coordinates_by_cities_query.rb,
lib/ndfd/client/query/select_gridpoint_coordinates_query.rb,
lib/ndfd/client/query/select_linepoint_coordinates_query.rb

Overview

Original web service description: graphical.weather.gov/xml/

Defined Under Namespace

Classes: Client, DWML

Class Method Summary collapse

Class Method Details

.client(options = {}) ⇒ Object


8
9
10
# File 'lib/ndfd.rb', line 8

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

.envObject


4
5
6
# File 'lib/ndfd.rb', line 4

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

.root_pathObject


12
13
14
# File 'lib/ndfd.rb', line 12

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

.vendor_pathObject


16
17
18
# File 'lib/ndfd.rb', line 16

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