Forgery
Generates a random currency code for a country
Forgery(:currency).code # => "AUD"
# File lib/forgery/forgery/currency.rb, line 15 def self.code dictionaries[:currency_codes].random.unextend end
Generates a random currency description
Forgery(:currency).description # => "Australian Dollars"
# File lib/forgery/forgery/currency.rb, line 7 def self.description dictionaries[:currency_descriptions].random.unextend end
[Validate]
Generated with the Darkfish Rdoc Generator 2.