Class: Faker::Space
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.agency ⇒ String
Produces the name of a space agency.
-
.agency_abv ⇒ String
Produces a space agency abbreviation.
-
.company ⇒ String
Produces the name of a space company.
-
.constellation ⇒ String
Produces the name of a constellation.
-
.distance_measurement ⇒ String
Produces a distance measurement.
-
.galaxy ⇒ String
Produces the name of a galaxy.
-
.launch_vehicle ⇒ String
Produces the name of a launch vehicle.
-
.meteorite ⇒ String
Produces the name of a meteorite.
-
.moon ⇒ String
Produces the name of a moon.
-
.nasa_space_craft ⇒ String
Produces the name of a NASA spacecraft.
-
.nebula ⇒ String
Produces the name of a nebula.
-
.planet ⇒ String
Produces the name of a planet.
-
.star ⇒ String
Produces the name of a star.
-
.star_cluster ⇒ String
Produces the name of a star cluster.
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
.agency ⇒ String
Produces the name of a space agency.
108 109 110 |
# File 'lib/faker/default/space.rb', line 108 def agency fetch('space.agency') end |
.agency_abv ⇒ String
Produces a space agency abbreviation.
121 122 123 |
# File 'lib/faker/default/space.rb', line 121 def agency_abv fetch('space.agency_abv') end |
.company ⇒ String
Produces the name of a space company.
147 148 149 |
# File 'lib/faker/default/space.rb', line 147 def company fetch('space.company') end |
.constellation ⇒ String
Produces the name of a constellation.
82 83 84 |
# File 'lib/faker/default/space.rb', line 82 def constellation fetch('space.constellation') end |
.distance_measurement ⇒ String
Produces a distance measurement.
160 161 162 |
# File 'lib/faker/default/space.rb', line 160 def distance_measurement "#{rand(10..100)} #{fetch('space.distance_measurement')}" end |
.galaxy ⇒ String
Produces the name of a galaxy.
43 44 45 |
# File 'lib/faker/default/space.rb', line 43 def galaxy fetch('space.galaxy') end |
.launch_vehicle ⇒ String
Produces the name of a launch vehicle.
186 187 188 |
# File 'lib/faker/default/space.rb', line 186 def launch_vehicle fetch('space.launch_vehicle') end |
.meteorite ⇒ String
Produces the name of a meteorite.
173 174 175 |
# File 'lib/faker/default/space.rb', line 173 def meteorite fetch('space.meteorite') end |
.moon ⇒ String
Produces the name of a moon.
30 31 32 |
# File 'lib/faker/default/space.rb', line 30 def moon fetch('space.moon') end |
.nasa_space_craft ⇒ String
Produces the name of a NASA spacecraft.
134 135 136 |
# File 'lib/faker/default/space.rb', line 134 def nasa_space_craft fetch('space.nasa_space_craft') end |
.nebula ⇒ String
Produces the name of a nebula.
56 57 58 |
# File 'lib/faker/default/space.rb', line 56 def nebula fetch('space.nebula') end |
.planet ⇒ String
Produces the name of a planet.
17 18 19 |
# File 'lib/faker/default/space.rb', line 17 def planet fetch('space.planet') end |
.star ⇒ String
Produces the name of a star.
95 96 97 |
# File 'lib/faker/default/space.rb', line 95 def star fetch('space.star') end |
.star_cluster ⇒ String
Produces the name of a star cluster.
69 70 71 |
# File 'lib/faker/default/space.rb', line 69 def star_cluster fetch('space.star_cluster') end |