Files
old-ribica/front-api/helpers.rb

14 lines
267 B
Ruby
Raw Normal View History

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
RibicaConfig.BAM_TO_EURO_CONVERSION_RATE
end
def self.bam_to_euro(amount)
self.get_bam_to_euro_conversion_rate * amount
end
end