Class: Faker::Measurement
- Inherits:
-
Base
- Object
- Base
- Faker::Measurement
show all
- Defined in:
- lib/faker/default/measurement.rb
Constant Summary
collapse
- ALL =
'all'
- NONE =
'none'
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.height(amount = rand(10)) ⇒ Object
9
10
11
|
# File 'lib/faker/default/measurement.rb', line 9
def height(amount = rand(10))
define_measurement_locale(amount, 'height')
end
|
.length(amount = rand(10)) ⇒ Object
13
14
15
|
# File 'lib/faker/default/measurement.rb', line 13
def length(amount = rand(10))
define_measurement_locale(amount, 'length')
end
|
.metric_height(amount = rand(10)) ⇒ Object
25
26
27
|
# File 'lib/faker/default/measurement.rb', line 25
def metric_height(amount = rand(10))
define_measurement_locale(amount, 'metric_height')
end
|
.metric_length(amount = rand(10)) ⇒ Object
29
30
31
|
# File 'lib/faker/default/measurement.rb', line 29
def metric_length(amount = rand(10))
define_measurement_locale(amount, 'metric_length')
end
|
.metric_volume(amount = rand(10)) ⇒ Object
33
34
35
|
# File 'lib/faker/default/measurement.rb', line 33
def metric_volume(amount = rand(10))
define_measurement_locale(amount, 'metric_volume')
end
|
.metric_weight(amount = rand(10)) ⇒ Object
37
38
39
|
# File 'lib/faker/default/measurement.rb', line 37
def metric_weight(amount = rand(10))
define_measurement_locale(amount, 'metric_weight')
end
|
.volume(amount = rand(10)) ⇒ Object
17
18
19
|
# File 'lib/faker/default/measurement.rb', line 17
def volume(amount = rand(10))
define_measurement_locale(amount, 'volume')
end
|
.weight(amount = rand(10)) ⇒ Object
21
22
23
|
# File 'lib/faker/default/measurement.rb', line 21
def weight(amount = rand(10))
define_measurement_locale(amount, 'weight')
end
|