module Faker::Unit
Constants
- TEMPERATURE_UNITS
- TIME_UNITS
Public Instance Methods
temperature_abbr()
click to toggle source
# File lib/ffakerer/unit.rb, line 22 def temperature_abbr temperature.abbreviation end
temperature_name()
click to toggle source
# File lib/ffakerer/unit.rb, line 18 def temperature_name temperature.name end
time_abbr()
click to toggle source
# File lib/ffakerer/unit.rb, line 14 def time_abbr time.abbreviation end
time_name()
click to toggle source
# File lib/ffakerer/unit.rb, line 10 def time_name time.name end
Private Instance Methods
temperature()
click to toggle source
# File lib/ffakerer/unit.rb, line 32 def temperature OpenStruct.new TEMPERATURE_UNITS.rand end
time()
click to toggle source
# File lib/ffakerer/unit.rb, line 28 def time OpenStruct.new TIME_UNITS.rand end