Sha256: 745bff34db84d7579d92a27b1a1304b99eef0ebc415d2df54249fe34136b97ff

Contents?: true

Size: 1.01 KB

Versions: 38

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

module Faker
  class Creature
    class Cat < Base
      flexible :cat

      class << self
        ##
        # Produces a random name for a cat
        #
        # @return [String]
        #
        # @example
        #   Faker::Creature::Cat.name #=> "Felix"
        #
        # @faker.version 1.9.2
        def name
          fetch('creature.cat.name')
        end

        ##
        # Produces a random cat breed
        #
        # @return [String]
        #
        # @example
        #   Faker::Creature::Cat.breed #=> "Scottish Fold"
        #
        # @faker.version 1.9.2
        def breed
          fetch('creature.cat.breed')
        end

        ##
        # Produces a random cat breed registry
        #
        # @return [String]
        #
        # @example
        #   Faker::Creature::Cat.registry #=> "Fancy Southern Africa Cat Council"
        #
        # @faker.version 1.9.2
        def registry
          fetch('creature.cat.registry')
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
faker-3.5.1 lib/faker/creature/cat.rb
faker-3.4.2 lib/faker/creature/cat.rb
faker-3.4.1 lib/faker/creature/cat.rb
faker-3.3.1 lib/faker/creature/cat.rb
faker-3.3.0 lib/faker/creature/cat.rb
faker-3.2.3 lib/faker/creature/cat.rb
faker-3.2.2 lib/faker/creature/cat.rb
faker-3.2.1 lib/faker/creature/cat.rb
faker-3.2.0 lib/faker/creature/cat.rb
faker-3.1.1 lib/faker/creature/cat.rb
faker-3.1.0 lib/faker/creature/cat.rb
faker-3.0.0 lib/faker/creature/cat.rb
faker-2.23.0 lib/faker/creature/cat.rb
faker-2.22.0 lib/faker/creature/cat.rb
faker-2.21.0 lib/faker/creature/cat.rb
faker-2.20.0 lib/faker/creature/cat.rb
faker-2.19.0 lib/faker/creature/cat.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/lib/faker/creature/cat.rb
faker-2.18.0 lib/faker/creature/cat.rb
faker-2.17.0 lib/faker/creature/cat.rb