Skip to content

Instantly share code, notes, and snippets.

@Veejay
Created August 15, 2011 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Veejay/1147736 to your computer and use it in GitHub Desktop.
Save Veejay/1147736 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p180 :002 > test_extractor
=> {:emails=>[#<AccountEmailAddress id: 114, account_id: nil, email_address: " cmlanger@gmail.com", email_type: "personal", created_at: "2011-08-15 20:19:22", updated_at: "2011-08-15 20:19:22">], :addresses=>{:origin=>#<Address id: 226, addressable_id: nil, addressable_type: nil, street_1: nil, street_2: nil, city: "Randolph", state: "Massachusetts", zip_code: "02368", floor: nil, latitude: nil, longitude: nil, status: "unverified", created_at: "2011-08-15 20:19:22", updated_at: "2011-08-15 20:19:22">}, :phones=>[#<AccountPhoneNumber id: 208, account_id: nil, number: "7322368849", phone_type: "home", created_at: "2011-08-15 20:19:22", updated_at: "2011-08-15 20:19:22">, #<AccountPhoneNumber id: nil, account_id: nil, number: nil, phone_type: "work", created_at: nil, updated_at: nil>], :first_name=>"Christine", :last_name=>"Langer", :contact_preference=>"No Preference Any Time", :move_date=>Thu, 06 Jan 2011, :move_weight=>"1 Bedroom, 2940 lbs"}
ruby-1.9.2-p180 :003 > ap _
{
:emails => [
[0] #<AccountEmailAddress:0x00000105fc8900> {
:id => 114,
:account_id => nil,
:email_address => " cmlanger@gmail.com",
:email_type => "personal",
:created_at => Mon, 15 Aug 2011 16:19:22 EDT -04:00,
:updated_at => Mon, 15 Aug 2011 16:19:22 EDT -04:00
}
],
:addresses => {
:origin => Randolph, Massachusetts 02368 {
:id => 226,
:addressable_id => nil,
:addressable_type => nil,
:street_1 => nil,
:street_2 => nil,
:city => "Randolph",
:state => "Massachusetts",
:zip_code => "02368",
:floor => nil,
:latitude => nil,
:longitude => nil,
:status => "unverified",
:created_at => Mon, 15 Aug 2011 16:19:22 EDT -04:00,
:updated_at => Mon, 15 Aug 2011 16:19:22 EDT -04:00
}
},
:phones => [
[0] #<AccountPhoneNumber:0x000001078c0958> {
:id => 208,
:account_id => nil,
:number => "7322368849",
:phone_type => "home",
:created_at => Mon, 15 Aug 2011 16:19:22 EDT -04:00,
:updated_at => Mon, 15 Aug 2011 16:19:22 EDT -04:00
},
[1] #<AccountPhoneNumber:0x00000107808a60> {
:id => nil,
:account_id => nil,
:number => nil,
:phone_type => "work",
:created_at => nil,
:updated_at => nil
}
],
:first_name => "Christine",
:last_name => "Langer",
:contact_preference => "No Preference Any Time",
:move_date => Thu, 06 Jan 2011,
:move_weight => "1 Bedroom, 2940 lbs"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment