lib/momm.rb in momm-0.0.3 vs lib/momm.rb in momm-0.0.4

- old
+ new

@@ -52,20 +52,17 @@ attr_reader :storage, :feed # delegate the exchange, :currencies, exchange_rate, # as well as meta programmed methods to module level delegate [:currencies, :exchange, :exchange_rate, - :method_missing, :respond_to?] => :calculator + :method_missing, :respond_to?, :update! ] => :calculator private # Delegate the calculator def calculator - @calculator ||= if storage || feed - Calculator.new storage, feed - else - Calculator.new - end + @calculator = Calculator.new( + (storage || Memcached.new), (feed || Feeds::ECB.instance)) end end # YAS BANNER = <<-EOS \ No newline at end of file