Class: FIXSpec::DataDictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/fix_spec/data_dictionary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fileName) ⇒ DataDictionary


9
10
11
12
13
# File 'lib/fix_spec/data_dictionary.rb', line 9

def initialize(fileName)
  @fileName = fileName

  super(@fileName)
end

Instance Attribute Details

#fileNameObject (readonly)

Returns the value of attribute fileName


7
8
9
# File 'lib/fix_spec/data_dictionary.rb', line 7

def fileName
  @fileName
end

Instance Method Details

#get_reverse_value_name(tag, name) ⇒ Object


19
20
21
22
23
24
25
# File 'lib/fix_spec/data_dictionary.rb', line 19

def get_reverse_value_name(tag, name)
  if(reverse_lookup[tag].has_key?(name))
    reverse_lookup[tag][name]
  else
    name
  end
end

#reverse_lookupObject


15
16
17
# File 'lib/fix_spec/data_dictionary.rb', line 15

def reverse_lookup
  @reverse_lookup ||= parse_xml
end