class Faker::Space

Public Class Methods

agency() click to toggle source

Produces the name of a space agency.

@return [String]

@example

Faker::Space.agency #=> "Japan Aerospace Exploration Agency"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 108
def agency
  fetch('space.agency')
end
agency_abv() click to toggle source

Produces a space agency abbreviation.

@return [String]

@example

Faker::Space.agency_abv #=> "NASA"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 121
def agency_abv
  fetch('space.agency_abv')
end
company() click to toggle source

Produces the name of a space company.

@return [String]

@example

Faker::Space.company #=> "SpaceX"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 147
def company
  fetch('space.company')
end
constellation() click to toggle source

Produces the name of a constellation.

@return [String]

@example

Faker::Space.constellation #=> "Orion"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 82
def constellation
  fetch('space.constellation')
end
distance_measurement() click to toggle source

Produces a distance measurement.

@return [String]

@example

Faker::Space.distance_measurement #=> "15 parsecs"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 160
def distance_measurement
  rand(10..100).to_s + ' ' + fetch('space.distance_measurement')
end
galaxy() click to toggle source

Produces the name of a galaxy.

@return [String]

@example

Faker::Space.galaxy #=> "Andromeda"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 43
def galaxy
  fetch('space.galaxy')
end
launch_vehicle() click to toggle source

Produces the name of a launch vehicle.

@return [String]

@example

Faker::Space.launch_vehicle #=> "Saturn IV"

@faker.version 1.9.0

# File lib/faker/default/space.rb, line 186
def launch_vehicle
  fetch('space.launch_vehicle')
end
meteorite() click to toggle source

Produces the name of a meteorite.

@return [String]

@example

Faker::Space.meteorite #=> "Ensisheim"

@faker.version 1.7.0

# File lib/faker/default/space.rb, line 173
def meteorite
  fetch('space.meteorite')
end
moon() click to toggle source

Produces the name of a moon.

@return [String]

@example

Faker::Space.moon #=> "Europa"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 30
def moon
  fetch('space.moon')
end
nasa_space_craft() click to toggle source

Produces the name of a NASA spacecraft.

@return [String]

@example

Faker::Space.nasa_space_craft #=> "Endeavour"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 134
def nasa_space_craft
  fetch('space.nasa_space_craft')
end
nebula() click to toggle source

Produces the name of a nebula.

@return [String]

@example

Faker::Space.nebula #=> "Triffid Nebula"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 56
def nebula
  fetch('space.nebula')
end
planet() click to toggle source

Produces the name of a planet.

@return [String]

@example

Faker::Space.planet #=> "Venus"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 17
def planet
  fetch('space.planet')
end
star() click to toggle source

Produces the name of a star.

@return [String]

@example

Faker::Space.star #=> "Proxima Centauri"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 95
def star
  fetch('space.star')
end
star_cluster() click to toggle source

Produces the name of a star cluster.

@return [String]

@example

Faker::Space.star_cluster #=> "Messier 70"

@faker.version 1.6.4

# File lib/faker/default/space.rb, line 69
def star_cluster
  fetch('space.star_cluster')
end