Sha256: ae429c77472a9ca502260be30a5a6f23ed21580b79ba84515bc1a880702f15fc

Contents?: true

Size: 372 Bytes

Versions: 7

Compression:

Stored size: 372 Bytes

Contents

require_relative 'currency_cloud'

require 'sinatra'

get '/conversion' do
  conversion = CurrencyCloud::Conversion.create({
    buy_currency: params[:buy_currency], 
    sell_currency: params[:sell_currency],
    amount: params[:amount], 
    fixed_side: 'buy', 
    reason: 'test', 
    term_agreement: true
  })
  "Conversion created: #{conversion.short_reference}"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
currency_cloud-0.9.0 examples/server.rb
currency_cloud-0.8.2 examples/server.rb
currency_cloud-0.8.0 examples/server.rb
currency_cloud-0.7.2 examples/server.rb
currency_cloud-0.7.1 examples/server.rb
currency_cloud-0.7 examples/server.rb
currency_cloud-0.5 examples/server.rb