Created
May 23, 2012 20:10
-
-
Save rodrei/2777467 to your computer and use it in GitHub Desktop.
Calls are being deleted
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
# e is a Google::Event with valid phone_numbers | |
irb(main):011:0> e.create_call_from_attrs | |
RESQUE SCHEDULED: Call 4fbd42c46eee0c0007000002 at 2012-05-31 17:53:00 UTC | |
=> #<Call _id: 4fbd42c46eee0c0007000002, _type: nil, created_at: 2012-05-23 20:04:20 UTC, updated_at: 2012-05-23 20:04:20 UTC, deleted_at: nil, google_event_id: BSON::ObjectId('4fbd35802697550007000003'), bridge_number: "6193262700", pin: "4031741", starts_at: 2012-05-31 17:53:00 UTC, ends_at: 2012-05-31 18:53:00 UTC, state: "scheduled", user_id: BSON::ObjectId('4f8f0e44f67a78000a00000a'), provider_id: BSON::ObjectId('4f8ce23a011b4d0007000002')> | |
irb(main):012:0> e.call | |
=> #<Call _id: 4fbd42c46eee0c0007000002, _type: nil, created_at: 2012-05-23 20:04:20 UTC, updated_at: 2012-05-23 20:04:20 UTC, deleted_at: nil, google_event_id: BSON::ObjectId('4fbd35802697550007000003'), bridge_number: "6193262700", pin: "4031741", starts_at: 2012-05-31 17:53:00 UTC, ends_at: 2012-05-31 18:53:00 UTC, state: "scheduled", user_id: BSON::ObjectId('4f8f0e44f67a78000a00000a'), provider_id: BSON::ObjectId('4f8ce23a011b4d0007000002')> | |
irb(main):013:0> e.call.valid? | |
=> true | |
irb(main):014:0> e.call.persisted? | |
=> true | |
irb(main):015:0> e.reload | |
=> #<Google::Event _id: 4fbd35802697550007000003, _type: nil, deleted_at: nil, uid: "gal7vl5psnpasqojo84vuecp8g", status: "confirmed", html_link: "https://www.google.com/calendar/event?eid=Z2FsN3ZsNXBzbnBhc3Fvam84NHZ1ZWNwOGcgcm9kcmlnb0BkZXZpZ2V0LmNvbQ", scheduled_at: 2012-05-17 17:47:37 UTC, modified_at: 2012-05-22 18:40:39 UTC, summary: "Test call for Rodrigo", description: nil, location: "(619) 326-2700, PIN: 4031741", creator_name: "Mark Dillon", creator_email: "[email protected]", organizer_name: "Mark Dillon", organizer_email: "[email protected]", start_date: nil, end_date: nil, start_time: 2012-05-31 17:53:00 UTC, start_time_zone: nil, end_time: 2012-05-31 18:53:00 UTC, end_time_zone: nil, starts_at: 2012-05-31 17:53:00 UTC, ends_at: 2012-05-31 18:53:00 UTC, recurrence: [], ical_uid: "[email protected]", sequence: 3, reminders: {"useDefault"=>true}, extended_properties: nil, attendees: {}, etag: "\"lF5KsSB-u669LfzQAdCE1YvZ3JY/Q05pbzU2NzNKaEVBQUFBQUFBQUFBQT09\"", user_id: BSON::ObjectId('4f8f0e44f67a78000a00000a'), calendar_id: BSON::ObjectId('4fbd35802697550007000001'), recurring_event_uid: nil> | |
irb(main):016:0> e.call | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment