Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require 'rubygems'
require 'faker'
#Let's see if we can make a fake person...
person_name = Faker::Name.name
person_email = Faker::Internet.email
person_company = Faker::Company.name
person_company_slogan = Faker::Company.bs
person_phone = Faker::PhoneNumber.phone_number
person_address = Faker::Address.street_address
person_city = Faker::Address.city
person_state = Faker::Address.us_state
person_zip = Faker::Address.zip_code
# Wow! Now let's print him off some business cards
puts "#{person_name}
#{person_company}
'#{person_company_slogan.capitalize}'
#{person_address}
#{person_city}, #{person_state} #{person_zip}
Call me at : #{person_phone}
Email me at: #{person_email}
It's a pleasure doing business."
# Awesome, now we can go into business and get back our money from that Nigerian prince fellow...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment