class Faker::Travel::TrainStation

def name(region: nil, type: nil)

Returns:
  • (String) -

Parameters:
  • type (String) -- Train station type: metro, railway
  • region (String) -- Train station region: germany, spain, united_kingdom, united_states
def name(region: nil, type: nil)
  region, type = fill_missing_inputs_with_samples(region, type)
  fetch("train_station.#{region}.#{type}")
end