Sha256: 22707f0e8f9fcc96c33263d231fe2d98f5155f79e39f5e01b2a6cfca6bd2278f

Contents?: true

Size: 376 Bytes

Versions: 17

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

module Faker
  class Hobby < Base
    flexible :hobby

    class << self
      ##
      # Retrieves a typical hobby activity.
      #
      # @return [String]
      #
      # @example
      #   Faker::Hobby.activity #=> "Cooking"
      #
      # @faker.version next
      def activity
        fetch('hobby.activity')
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
faker-3.5.1 lib/faker/default/hobby.rb
faker-3.4.2 lib/faker/default/hobby.rb
faker-3.4.1 lib/faker/default/hobby.rb
faker-3.3.1 lib/faker/default/hobby.rb
faker-3.3.0 lib/faker/default/hobby.rb
faker-3.2.3 lib/faker/default/hobby.rb
faker-3.2.2 lib/faker/default/hobby.rb
faker-3.2.1 lib/faker/default/hobby.rb
faker-3.2.0 lib/faker/default/hobby.rb
faker-3.1.1 lib/faker/default/hobby.rb
faker-3.1.0 lib/faker/default/hobby.rb
faker-3.0.0 lib/faker/default/hobby.rb
faker-2.23.0 lib/faker/default/hobby.rb
faker-2.22.0 lib/faker/default/hobby.rb
faker-2.21.0 lib/faker/default/hobby.rb
faker-2.20.0 lib/faker/default/hobby.rb
faker-2.19.0 lib/faker/default/hobby.rb