overture8/fx_rates

View on GitHub
lib/fx_rates/configuration.rb

Summary

Maintainability
A
0 mins
Test Coverage
require "fx_rates/api/parser/mock"
require "moneta"

module FxRates
  # Configuration provides library wide configuration
  # to be defined and retrieved.
  #
  # parser - The parser strategy that you wish to use.
  # store - The key/value store that you wish to use.
  class Configuration
    attr_accessor :parser, :store

    def initialize
      # Defaults
      @parser = Api::Parser::Mock
      @store = Moneta.new(:LRUHash)
    end
  end
end