Files
old-ribica/front-api/helpers.rb
2016-01-07 13:14:49 +01:00

18 lines
337 B
Ruby

class Helper
def self.money(amount)
sprintf('%.2f KM', amount.to_f)
end
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
def self.do_not_parse_as_json
['/payment/confirmation']
end
end