module FFaker::AddressAU

def full_address(st_abbr = nil)

def full_address(st_abbr = nil)
  st_abbr ||= state_abbr
  "#{FFaker::Address.street_address}, #{suburb(st_abbr)} #{st_abbr} #{postcode}"
end

def postcode(st_abbr = nil)

def postcode(st_abbr = nil)
  st_abbr ||= state_abbr
  POSTCODE[st_abbr][rand(0...POSTCODE[st_abbr].size)]
end

def state

def state
  fetch_sample(STATE)
end

def state_abbr

def state_abbr
  fetch_sample(STATE_ABBR)
end

def suburb(st_abbr = nil, p_code = nil)

def suburb(st_abbr = nil, p_code = nil)
  st_abbr ||= state_abbr
  p_code ||= postcode(st_abbr)
  SUBURB[st_abbr][p_code]
end

def time_zone(st_abbr = nil)

def time_zone(st_abbr = nil)
  return TIME_ZONE[st_abbr] if st_abbr
  TIME_ZONE.values.sample
end