Class: DWML

Inherits:
Object
  • Object
show all
Defined in:
lib/dwml.rb,
lib/dwml/version.rb,
lib/dwml/location.rb,
lib/dwml/time_layout.rb,
lib/dwml/data_extractor.rb,
lib/dwml/head_extractor.rb,
lib/dwml/parameter_extractor.rb

Overview

Note: See graphical.weather.gov/xml/mdl/XML/Design/MDL_XML_Design.pdf for authoritative type definitions

Defined Under Namespace

Classes: DataExtractor, HeadExtractor, Location, ParameterExtractor, TimeLayout

Constant Summary collapse

VERSION =
"1.1.3"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xmldoc) ⇒ DWML

Returns a new instance of DWML.



14
15
16
17
# File 'lib/dwml.rb', line 14

def initialize(xmldoc)
  @xmldoc = xmldoc
  @output = {}
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



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

def output
  @output
end

#xmldocObject (readonly)

Returns the value of attribute xmldoc.



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

def xmldoc
  @xmldoc
end

Instance Method Details

#processObject



19
20
21
22
23
# File 'lib/dwml.rb', line 19

def process
  build_head
  build_data
  output
end