Class: Faker::Space

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

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, sample, shuffle, translate, unique, with_locale

Class Method Details

.agencyObject


33
34
35
# File 'lib/faker/space.rb', line 33

def agency
  fetch('space.agency')
end

.agency_abvObject


37
38
39
# File 'lib/faker/space.rb', line 37

def agency_abv
  fetch('space.agency_abv')
end

.companyObject


45
46
47
# File 'lib/faker/space.rb', line 45

def company
  fetch('space.company')
end

.constellationObject


25
26
27
# File 'lib/faker/space.rb', line 25

def constellation
  fetch('space.constellation')
end

.distance_measurementObject


49
50
51
# File 'lib/faker/space.rb', line 49

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

.galaxyObject


13
14
15
# File 'lib/faker/space.rb', line 13

def galaxy
  fetch('space.galaxy')
end

.meteoriteObject


53
54
55
# File 'lib/faker/space.rb', line 53

def meteorite
  fetch('space.meteorite')
end

.moonObject


9
10
11
# File 'lib/faker/space.rb', line 9

def moon
  fetch('space.moon')
end

.nasa_space_craftObject


41
42
43
# File 'lib/faker/space.rb', line 41

def nasa_space_craft
  fetch('space.nasa_space_craft')
end

.nebulaObject


17
18
19
# File 'lib/faker/space.rb', line 17

def nebula
  fetch('space.nebula')
end

.planetObject


5
6
7
# File 'lib/faker/space.rb', line 5

def planet
  fetch('space.planet')
end

.starObject


29
30
31
# File 'lib/faker/space.rb', line 29

def star
  fetch('space.star')
end

.star_clusterObject


21
22
23
# File 'lib/faker/space.rb', line 21

def star_cluster
  fetch('space.star_cluster')
end