Created
June 21, 2011 18:31
-
-
Save sipple/1038531 to your computer and use it in GitHub Desktop.
Google Crap
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
module GoogleCustomSearch | |
class SearchResultItem | |
attr_reader :title, :content | |
def initialize(hash = {}) | |
@errors = [] | |
hash.each do |key, value| | |
self.instance_variable_set("@#{key}", value) | |
end | |
end | |
def url | |
@unescapedUrl | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment