Sha256: 266b2ee79aa9baa600b1c6adab68cb0856d805fcc958f8f41b534af9225fde1d

Contents?: true

Size: 898 Bytes

Versions: 12

Compression:

Stored size: 898 Bytes

Contents

# frozen_string_literal: true

module Faker
  class Australia < Base
    class << self
      ##
      # Produces a location in Australia
      #
      # @return [String]
      #
      # @example
      #   Faker::Australia.location
      #    #=> "Sydney"
      #
      # @faker.version next
      def location
        fetch('australia.locations')
      end

      # Produces an Australian animal
      #
      # @return [String]
      #
      # @example
      #   Faker::Australia.animal
      #    #=> "Dingo"
      #
      # @faker.version next
      def animal
        fetch('australia.animals')
      end

      # Produces an Australian State or Territory
      #
      # @return [String]
      #
      # @example
      #   Faker::Australia.state
      #    #=> "New South Wales"
      #
      # @faker.version next
      def state
        fetch('australia.states')
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
faker-3.2.3 lib/faker/locations/australia.rb
faker-3.2.2 lib/faker/locations/australia.rb
faker-3.2.1 lib/faker/locations/australia.rb
faker-3.2.0 lib/faker/locations/australia.rb
faker-3.1.1 lib/faker/locations/australia.rb
faker-3.1.0 lib/faker/locations/australia.rb
faker-3.0.0 lib/faker/locations/australia.rb
faker-2.23.0 lib/faker/locations/australia.rb
faker-2.22.0 lib/faker/locations/australia.rb
faker-2.21.0 lib/faker/locations/australia.rb
faker-2.20.0 lib/faker/locations/australia.rb
faker-2.19.0 lib/faker/locations/australia.rb