Class: Yahoo::WebSearch::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/yahoo/web_search.rb,
lib/yahoo/web_search.rb

Overview

A Result contains the following fields:

title

the title of the web page

summary

summary text associated with the web page

url

URL for the web page

click_url

URL for linking to the page

mime_type

MIME type of the page

modification_date

Time the page was last modified

cache_url

URL of the cached result

cache_size

size of the cached result in bytes

Instance Attribute Summary collapse

Instance Attribute Details

#cache_sizeObject

Returns the value of attribute cache_size

Returns:

  • (Object)

    the current value of cache_size



10
11
12
# File 'lib/yahoo/web_search.rb', line 10

def cache_size
  @cache_size
end

#cache_urlObject

Returns the value of attribute cache_url

Returns:

  • (Object)

    the current value of cache_url



10
11
12
# File 'lib/yahoo/web_search.rb', line 10

def cache_url
  @cache_url
end

#click_urlObject

Returns the value of attribute click_url

Returns:

  • (Object)

    the current value of click_url



10
11
12
# File 'lib/yahoo/web_search.rb', line 10

def click_url
  @click_url
end

#mime_typeObject

Returns the value of attribute mime_type

Returns:

  • (Object)

    the current value of mime_type



10
11
12
# File 'lib/yahoo/web_search.rb', line 10

def mime_type
  @mime_type
end

#modification_dateObject

Returns the value of attribute modification_date

Returns:

  • (Object)

    the current value of modification_date



10
11
12
# File 'lib/yahoo/web_search.rb', line 10

def modification_date
  @modification_date
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



10
11
12
# File 'lib/yahoo/web_search.rb', line 10

def summary
  @summary
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



10
11
12
# File 'lib/yahoo/web_search.rb', line 10

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



10
11
12
# File 'lib/yahoo/web_search.rb', line 10

def url
  @url
end