lib/momm/storage.rb in momm-0.0.7 vs lib/momm/storage.rb in momm-1.0.0

- old
+ new

@@ -25,12 +25,11 @@ # # == Returns # nil # def set_rate(currency, rate, date = Date.today) - date = Date.parse(date) if date.is_a? String - client.set "#{date}#{currency}", rate + raise NotImplementedError end # Fetch the currency rate from client # # == Parameters @@ -41,12 +40,11 @@ # # == Returns # the currency rate # def get_rate(currency, date = Date.today) - date = Date.parse(date) if date.is_a? String - client.get("#{date}#{currency}").to_f + raise NotImplementedError end # update the data to storage # # == parameters @@ -60,9 +58,7 @@ data.each do |d| set_rate d[:currency], d[:rate], d[:date] end "OK" end - - NotImplementedError = Class.new(StandardError) end -end \ No newline at end of file +end