Module: CurrencyConversion::Model::InstanceMethods

Defined in:
lib/currency_conversion/model.rb

Instance Method Summary collapse

Instance Method Details

#make_transaction(ammount, from, to) ⇒ Object



19
20
21
22
# File 'lib/currency_conversion/model.rb', line 19

def make_transaction(ammount, from, to)
    @gateway = CurrencyConversion::Gateway.new value: ammount, from: from , to: to
    @gateway.convert_payment
end