Parent

Methods

Forgery::Time

Generates random timezone information.

Public Class Methods

zone() click to toggle source

Gets a random timezone out of the ‘timezones’ dictionary

Forgery(:timezone).timezone
# => "Sydney"
# File lib/forgery/forgery/time.rb, line 8
def self.zone
  dictionaries[:zones].random.unextend
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.