Class: Faker::Space

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/space.rb

Constant Summary

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

.agencyObject


35
36
37
# File 'lib/faker/default/space.rb', line 35

def agency
  fetch('space.agency')
end

.agency_abvObject


39
40
41
# File 'lib/faker/default/space.rb', line 39

def agency_abv
  fetch('space.agency_abv')
end

.companyObject


47
48
49
# File 'lib/faker/default/space.rb', line 47

def company
  fetch('space.company')
end

.constellationObject


27
28
29
# File 'lib/faker/default/space.rb', line 27

def constellation
  fetch('space.constellation')
end

.distance_measurementObject


51
52
53
# File 'lib/faker/default/space.rb', line 51

def distance_measurement
  rand(10..100).to_s + ' ' + fetch('space.distance_measurement')
end

.galaxyObject


15
16
17
# File 'lib/faker/default/space.rb', line 15

def galaxy
  fetch('space.galaxy')
end

.launch_vehiculeObject


59
60
61
# File 'lib/faker/default/space.rb', line 59

def launch_vehicule
  fetch('space.launch_vehicule')
end

.meteoriteObject


55
56
57
# File 'lib/faker/default/space.rb', line 55

def meteorite
  fetch('space.meteorite')
end

.moonObject


11
12
13
# File 'lib/faker/default/space.rb', line 11

def moon
  fetch('space.moon')
end

.nasa_space_craftObject


43
44
45
# File 'lib/faker/default/space.rb', line 43

def nasa_space_craft
  fetch('space.nasa_space_craft')
end

.nebulaObject


19
20
21
# File 'lib/faker/default/space.rb', line 19

def nebula
  fetch('space.nebula')
end

.planetObject


7
8
9
# File 'lib/faker/default/space.rb', line 7

def planet
  fetch('space.planet')
end

.starObject


31
32
33
# File 'lib/faker/default/space.rb', line 31

def star
  fetch('space.star')
end

.star_clusterObject


23
24
25
# File 'lib/faker/default/space.rb', line 23

def star_cluster
  fetch('space.star_cluster')
end