Class: Faker::Device
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.build_number ⇒ Integer
Produces a build number between 1 and 500.
-
.manufacturer ⇒ String
Produces the name of a manufacturer for a device.
-
.model_name ⇒ String
Produces a model name for a device.
-
.platform ⇒ String
Produces the name of a platform for a device.
-
.serial ⇒ String
Produces a serial code for a device.
-
.version ⇒ Integer
Produces a version number between 1 and 1000.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.build_number ⇒ Integer
Produces a build number between 1 and 500.
15 16 17 |
# File 'lib/faker/default/device.rb', line 15 def build_number Faker::Number.between(from: 1, to: 500) end |
.manufacturer ⇒ String
Produces the name of a manufacturer for a device.
28 29 30 |
# File 'lib/faker/default/device.rb', line 28 def manufacturer fetch('device.manufacturer') end |
.model_name ⇒ String
Produces a model name for a device.
41 42 43 |
# File 'lib/faker/default/device.rb', line 41 def model_name fetch('device.model_name') end |
.platform ⇒ String
Produces the name of a platform for a device.
54 55 56 |
# File 'lib/faker/default/device.rb', line 54 def platform fetch('device.platform') end |
.serial ⇒ String
Produces a serial code for a device.
67 68 69 |
# File 'lib/faker/default/device.rb', line 67 def serial fetch('device.serial') end |