Sha256: e190526921ed9bcf86a59b64b534dce012eb2832b0bc6bb8d12564adadf8e298

Contents?: true

Size: 952 Bytes

Versions: 10

Compression:

Stored size: 952 Bytes

Contents

module Faker
  class Space < Base
    flexible :space
    class << self
      def planet
        fetch('space.planet')
      end

      def moon
        fetch('space.moon')
      end

      def galaxy
        fetch('space.galaxy')
      end

      def nebula
        fetch('space.nebula')
      end

      def star_cluster
        fetch('space.star_cluster')
      end

      def constellation
        fetch('space.constellation')
      end

      def star
        fetch('space.star')
      end

      def agency
        fetch('space.agency')
      end

      def agency_abv
        fetch('space.agency_abv')
      end

      def nasa_space_craft
        fetch('space.nasa_space_craft')
      end

      def company
        fetch('space.company')
      end

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

      def meteorite
        fetch('space.meteorite')
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
faker-1.8.7 lib/faker/space.rb
faker-1.8.6 lib/faker/space.rb
faker-1.8.5 lib/faker/space.rb
faker-1.8.4 lib/faker/space.rb
faker-1.8.3 lib/faker/space.rb
faker-1.8.2 lib/faker/space.rb
faker-1.8.0 lib/faker/space.rb
faker-1.7.3 lib/faker/space.rb
faker-1.7.2 lib/faker/space.rb
faker-1.7.1 lib/faker/space.rb