Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby-1.9.2-p180 :117 > ap ReceivedEmail.gather_inventory ReceivedEmail.find(13).body.split(/Weight and Volume Calculator\(Cube Sheet\)/)[1].split(/\r?\n/)[4..50].reject{|e| e.strip.empty?};0
- {
- :appliances => [
- [0] {
- :item_name => "Vacuum Cleaner",
- :quantity => "1",
- :weight => "35",
- :volume => "5"
- }
- ],
- :bedroom => [
- [0] {
- :item_name => "Bed, Single/Hollywood",
- :quantity => "1",
- :weight => "280",
- :volume => "40"
- },
- [1] {
- :item_name => "Box, Large",
- :quantity => "40",
- :weight => "1680",
- :volume => "240"
- },
- [2] {
- :item_name => "Chair, Boudoir",
- :quantity => "1",
- :weight => "70",
- :volume => "10"
- },
- [3] {
- :item_name => "Chest",
- :quantity => "1",
- :weight => "84",
- :volume => "12"
- },
- [4] {
- :item_name => "Dresser, Single",
- :quantity => "1",
- :weight => "210",
- :volume => "30"
- },
- [5] {
- :item_name => "Rug, Large",
- :quantity => "1",
- :weight => "70",
- :volume => "10"
- },
- [6] {
- :item_name => "Rug, Small",
- :quantity => "5",
- :weight => "105",
- :volume => "15"
- },
- [7] {
- :item_name => "Wardrobe, Large",
- :quantity => "1",
- :weight => "280",
- :volume => "40"
- }
- ],
- :kitchen => [
- [0] {
- :item_name => "Box, Dish-Pack",
- :quantity => "5",
- :weight => "350",
- :volume => "50"
- },
- [1] {
- :item_name => "Breakfast Suite, Chairs",
- :quantity => "4",
- :weight => "140",
- :volume => "20"
- },
- [2] {
- :item_name => "Microwave Oven",
- :quantity => "1",
- :weight => "70",
- :volume => "10"
- },
- [3] {
- :item_name => "Stool",
- :quantity => "1",
- :weight => "21",
- :volume => "3"
- }
- ],
- :"living room" => [
- [0] {
- :item_name => "Bookcase",
- :quantity => "6",
- :weight => "840",
- :volume => "120"
- },
- [1] {
- :item_name => "Chair, Rocker",
- :quantity => "1",
- :weight => "84",
- :volume => "12"
- },
- [2] {
- :item_name => "Lamp, Floor",
- :quantity => "2",
- :weight => "42",
- :volume => "6"
- },
- [3] {
- :item_name => "Magazine Rack",
- :quantity => "1",
- :weight => "14",
- :volume => "2"
- },
- [4] {
- :item_name => "Secretary Desk",
- :quantity => "1",
- :weight => "245",
- :volume => "35"
- },
- [5] {
- :item_name => "Sofa, Per Section",
- :quantity => "1",
- :weight => "210",
- :volume => "30"
- },
- [6] {
- :item_name => "Tables, End",
- :quantity => "2",
- :weight => "70",
- :volume => "10"
- },
- [7] {
- :item_name => "Trunk",
- :quantity => "1",
- :weight => "35",
- :volume => "5"
- },
- [8] {
- :item_name => "Plasma TV, 30 inches to 49 inches",
- :quantity => "1",
- :weight => "70",
- :volume => "10"
- }
- ]
- }
- => 0
Add Comment
Please, Sign In to add comment