Sha256: 5fdac217f74737b851b1d8803d8f6474f1951d81a7a478071dc8626f5c564ab2
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
# encoding: UTF-8 require "yaml" module SampleData CURRENCIES = YAML.load_file(File.open(File.expand_path("../sample_currencies.yml", __FILE__), "r")) HEADERS = YAML.load_file(File.open(File.expand_path("../sample_headers.yml", __FILE__), "r")) def self.raw File.open(File.expand_path("../sample_electronic.dat", __FILE__), "r") end def self.currencies CURRENCIES end def self.get_rate(currency) CURRENCIES[currency][:middle_rate_for_commercial_transactions] end def self.headers HEADERS end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nordea-2.0.2 | spec/support/sample_data.rb |