Created
April 22, 2014 20:59
-
-
Save mayra-cabrera/11194120 to your computer and use it in GitHub Desktop.
Offerings borrados
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.5 WHMIS | |
=> #<Offering id: 4222, offering_osg_id: "O715", name: ".5 WHMIS", description: "4 hours WHMIS at site", variant_id: 2468, volume_price_id: nil, code: "IH-WHMIS", price: #<BigDecimal:d7546dc,'0.1095E4',9(18)>, duration: "4.0", outline: "Failure to recognize and control hazards associated...", created_at: "2014-04-18 23:35:08", updated_at: "2014-04-18 23:35:08"> | |
=> #<Spree::Variant id: 2468, sku: "IH-WHMIS", weight: nil, height: nil, width: nil, depth: nil, deleted_at: nil, is_master: false, product_id: 845, cost_price: nil, position: 1, cost_currency: "CAD", track_inventory: true> | |
# Electrical Safety Awareness (Ontario) | |
=> #<Offering id: 4115, offering_osg_id: "O235", name: "Electrical Safety Awareness (Ontario) - Classroom", description: "8 hours ESP at site", variant_id: 2512, volume_price_id: nil, code: "IH-ESAO", price: #<BigDecimal:d747f18,'0.299E3',9(18)>, duration: "8.0", outline: "Our Electrical Safety Awareness training program pr...", created_at: "2014-04-18 23:35:02", updated_at: "2014-04-18 23:35:02"> | |
irb(main):014:0> Offering.find_by_offering_osg_id("O235").variant | |
=> #<Spree::Variant id: 2512, sku: "IH-ESAO", weight: nil, height: nil, width: nil, depth: nil, deleted_at: nil, is_master: false, product_id: 830, cost_price: nil, position: 1, cost_currency: "CAD", track_inventory: true> | |
# WHMIS Leaders Guide | |
=> #<Offering id: 4223, offering_osg_id: "O726", name: "WHMIS Leader's Guide+CD", description: " hours WLG+CD at site", variant_id: 2554, volume_price_id: nil, code: "PG-WLG+CD", price: #<BigDecimal:e0af1f0,'0.15995E3',18(18)>, duration: nil, outline: nil, created_at: "2014-04-18 23:35:08", updated_at: "2014-04-18 23:35:08"> | |
irb(main):018:0> Offering.find_by_offering_osg_id("O726").variant | |
=> #<Spree::Variant id: 2554, sku: "PG-WLG+CD", weight: #<BigDecimal:e635a20,'0.626E3',9(18)>, height: nil, width: nil, depth: nil, deleted_at: nil, is_master: false, product_id: 857, cost_price: nil, position: 1, cost_currency: "CAD", track_inventory: true> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment