kompakt-solutions/currency-converter

View on GitHub
app/controllers/home_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class HomeController < ApplicationController
  def index
  end

  def exchange
    value = Currency.exchange params[:currency], params[:currency_destination], params[:quantity].to_f
    render json: {'value': value} 
  end
end