Sha256: e344e97f36af6ffe0c466f2f9d74ed1e72af5c0c2c4c796a3a5ad36a5e4b0101

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

module Faker
  extend Deprecator

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faker-3.4.1 lib/faker/locations/australia.rb
faker-3.3.1 lib/faker/locations/australia.rb
faker-3.3.0 lib/faker/locations/australia.rb