Sha256: 2626c407f9bf272bc969cca6094b67e40b48a9d14f97086281483283f89cbda4

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

# encoding: UTF-8

module SampleData
  CURRENCIES = Marshal.load(File.open(File.expand_path("../sample_currencies.marshal", __FILE__), "r"))
  HEADERS = Marshal.load(File.open(File.expand_path("../sample_headers.marshal", __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

4 entries across 4 versions & 1 rubygems

Version Path
nordea-2.0.1 spec/support/sample_data.rb
nordea-2.0.0 spec/support/sample_data.rb
nordea-1.1.0 spec/support/sample_data.rb
nordea-1.0.0 spec/support/sample_data.rb