Skip to content

Instantly share code, notes, and snippets.

@sipple
Created June 21, 2011 18:31
Show Gist options
  • Save sipple/1038531 to your computer and use it in GitHub Desktop.
Save sipple/1038531 to your computer and use it in GitHub Desktop.
Google Crap
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