Class: NoaaWeatherClient::XmlParserFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/noaa_weather_client/xml_parser_factory.rb

Class Method Summary collapse

Class Method Details

.build_parser(options = {}) ⇒ Object



5
6
7
# File 'lib/noaa_weather_client/xml_parser_factory.rb', line 5

def self.build_parser(options = {})
  options.fetch(:provider, Nokogiri::XML)
end