2015-09-26 11:58:01 +02:00
|
|
|
class Helper
|
|
|
|
|
def self.money(amount)
|
|
|
|
|
sprintf('%.2f KM', amount.to_f)
|
|
|
|
|
end
|
2016-01-04 11:14:16 +01:00
|
|
|
|
|
|
|
|
def self.get_bam_to_euro_conversion_rate
|
2016-01-06 08:27:18 +01:00
|
|
|
RibicaConfig::BAM_TO_EURO_CONVERSION_RATE
|
2016-01-04 11:14:16 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def self.bam_to_euro(amount)
|
|
|
|
|
self.get_bam_to_euro_conversion_rate * amount
|
|
|
|
|
end
|
2016-01-07 13:14:49 +01:00
|
|
|
|
|
|
|
|
def self.do_not_parse_as_json
|
|
|
|
|
['/payment/confirmation']
|
|
|
|
|
end
|
2016-01-04 11:14:16 +01:00
|
|
|
end
|