Class: Faker::Australia

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/locations/australia.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.animalString

Produces an Australian animal

Examples:

Faker::Australia.animal
 #=> "Dingo"

Returns:

  • (String)

Available since:

  • next



29
30
31
# File 'lib/faker/locations/australia.rb', line 29

def animal
  fetch('australia.animals')
end

.locationString

Produces a location in Australia

Examples:

Faker::Australia.location
 #=> "Sydney"

Returns:

  • (String)

Available since:

  • next



16
17
18
# File 'lib/faker/locations/australia.rb', line 16

def location
  fetch('australia.locations')
end

.stateString

Produces an Australian State or Territory

Examples:

Faker::Australia.state
 #=> "New South Wales"

Returns:

  • (String)

Available since:

  • next



42
43
44
# File 'lib/faker/locations/australia.rb', line 42

def state
  fetch('australia.states')
end