Condo Mapper in Ruby
In this guide you will be learning how to use the condo mapper that will return the floor and unit number based on the condo number.
Guide Tasks
- Read Tutorial
- Complete the Exercise
Summary
Build a class that can be used to map where a specific location is in a Condo.
Exercise Description
"Define a class that will return the building, floor level and unit number based on the condo number using the condo mapper."
Example Data
'cm = CondoMapper.new('4205') expect(cm.floor).to eq('4') expect(cm.building).to eq('2') expect(cm.unit).to eq('05')'
Real World Usage
This exercise will be able to help you map out certain locations with specific data.