Class: NDFD::DWML::DataExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/ndfd/dwml/data_extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ DataExtractor

Returns a new instance of DataExtractor.


10
11
12
13
14
15
# File 'lib/ndfd/dwml/data_extractor.rb', line 10

def initialize(element)
  @element = element
  @locations = []
  @time_layouts = []
  @output = {}
end

Instance Attribute Details

#elementObject (readonly)

Returns the value of attribute element


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

def element
  @element
end

#outputObject (readonly)

Returns the value of attribute output


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

def output
  @output
end

Instance Method Details

#processObject


17
18
19
20
21
22
23
# File 'lib/ndfd/dwml/data_extractor.rb', line 17

def process
  extract_locations
  extract_time_layouts
  extract_parameters

  output
end