Baggage Claim Program in Ruby
In this guide you will learn how to make a baggage claim program in ruby.
Guide Tasks
- Read Tutorial
- Complete the Exercise
Summary
Build a method that will help make a baggage claim program to help determine the status of bags.
Exercise Description
"Define a method that will help build a baggage claim program to hep determine the status of the bags and give you the results on where your bag is."
Example
'@bags =' -> '982734' => { :name => 'Jon Snow', :departed_from => 'St Louis', :status => 'In Transit' }, '414028' => { :name => 'Tyrion Lannister', :departed_from => 'Phoenix', :status => 'Lost' }, '127407' => { :name => 'Sansa Stark', :departed_from => 'LA', :status => 'Delivered' }, '368934' => { :name => 'Daenerys Targaryen', :departed_from => 'NYC', :status => 'Delivered' }, '709289' => { :name => 'Jorah Mormont', :departed_from => 'Phoenix', :status => 'In Transit' },
Real World Usage
This exercise will help you parse through nested hashes to work with complicated data sets and return the desired information.