Sha256: b79e950ca26bf44736478469bad6e69e746ed15da03ec7b84e5ce4292e202613
Contents?: true
Size: 402 Bytes
Versions: 6
Compression:
Stored size: 402 Bytes
Contents
class Forgery::Currency < Forgery # Generates a random currency description # # Forgery(:currency).description # # => "Australian Dollars" def self.description dictionaries[:currency_descriptions].random end # Generates a random currency code for a country # # Forgery(:currency).code # # => "AUD" def self.code dictionaries[:currency_codes].random end end
Version data entries
6 entries across 6 versions & 1 rubygems