Created
July 18, 2014 10:51
-
-
Save spannerinworks/163cc609a03050e204cb to your computer and use it in GitHub Desktop.
This file contains 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
require 'ostruct' | |
id = OpenStruct.new(to_i: 'BAD SQL') | |
bad_event = OpenStruct.new(id: id) | |
# > bad_event.id.to_i | |
# => "BAD SQL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment