Sha256: dcd55d5a1d93691f3925b7e758c3edb30885b3c999051d772bc77a76bb300e15

Contents?: true

Size: 250 Bytes

Versions: 9

Compression:

Stored size: 250 Bytes

Contents

# Generates random timezone information.
class Forgery::Time < Forgery

  # Gets a random timezone out of the 'timezones' dictionary
  #
  #   Forgery(:timezone).timezone
  #   # => "Sydney"
  def self.zone
    dictionaries[:zones].random
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
forgery-0.3.12 lib/forgery/forgery/time.rb
forgery-0.3.11 lib/forgery/forgery/time.rb
forgery-0.3.10 lib/forgery/forgery/time.rb
forgery-0.3.9 lib/forgery/forgery/time.rb
forgery-0.3.8 lib/forgery/forgery/time.rb
forgery-0.3.7 lib/forgery/forgery/time.rb
forgery-0.3.6 lib/forgery/forgery/time.rb
forgery-0.3.5 lib/forgery/forgery/time.rb
forgery-0.3.4 lib/forgery/forgery/time.rb