Class: Google::Search::Item::Web

Inherits:
Google::Search::Item show all
Defined in:
lib/google-search/item/web.rb

Instance Attribute Summary collapse

Attributes inherited from Google::Search::Item

#content, #index, #thumbnail_height, #thumbnail_uri, #thumbnail_width, #title, #uri, #visible_uri

Instance Method Summary collapse

Methods inherited from Google::Search::Item

class_for

Constructor Details

#initialize(hash) ⇒ Web

Initialize with hash.


15
16
17
18
# File 'lib/google-search/item/web.rb', line 15

def initialize hash
  super
  @cache_uri = hash['cacheUrl']
end

Instance Attribute Details

#cache_uriObject (readonly)

Cached uri.


10
11
12
# File 'lib/google-search/item/web.rb', line 10

def cache_uri
  @cache_uri
end