Class: FIXSpec::DataDictionary
- Inherits:
-
Object
- Object
- FIXSpec::DataDictionary
- Defined in:
- lib/fix_spec/data_dictionary.rb
Instance Attribute Summary collapse
-
#fileName ⇒ Object
readonly
Returns the value of attribute fileName.
Instance Method Summary collapse
- #get_reverse_value_name(tag, name) ⇒ Object
-
#initialize(fileName) ⇒ DataDictionary
constructor
A new instance of DataDictionary.
- #reverse_lookup ⇒ Object
Constructor Details
#initialize(fileName) ⇒ DataDictionary
Returns a new instance of 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
#fileName ⇒ Object (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_lookup ⇒ Object
15 16 17 |
# File 'lib/fix_spec/data_dictionary.rb', line 15 def reverse_lookup @reverse_lookup ||= parse_xml end |