Class: FIXSpec::DataDictionary
- Inherits:
-
Object
- Object
- FIXSpec::DataDictionary
- Defined in:
- lib/fix_spec/data_dictionary.rb
Instance Method Summary collapse
- #get_reverse_value_name(tag, name) ⇒ Object
-
#initialize(fileName) ⇒ DataDictionary
constructor
A new instance of DataDictionary.
Constructor Details
#initialize(fileName) ⇒ DataDictionary
Returns a new instance of DataDictionary.
8 9 10 11 12 13 |
# File 'lib/fix_spec/data_dictionary.rb', line 8 def initialize fileName super fileName @reverse_lookup = Hash.new parse_xml(fileName) end |
Instance Method Details
#get_reverse_value_name(tag, name) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fix_spec/data_dictionary.rb', line 15 def get_reverse_value_name(tag, name) if(@reverse_lookup[tag].has_key?(name)) @reverse_lookup[tag][name] else name end end |