Class: BingSearch::WebResult

Inherits:
Result show all
Defined in:
lib/bing-search/models.rb

Instance Attribute Summary collapse

Attributes inherited from Result

#id

Method Summary

Methods inherited from Model

#initialize, #set

Constructor Details

This class inherits a constructor from BingSearch::Model

Instance Attribute Details

#descriptionString Also known as: summary

The summary displayed below the title in bing.com search results

Returns:

  • (String)


53
54
55
# File 'lib/bing-search/models.rb', line 53

def description
  @description
end

#display_urlString

URL to display to the user. Omits the scheme if HTTP.

Returns:

  • (String)


58
59
60
# File 'lib/bing-search/models.rb', line 58

def display_url
  @display_url
end

#titleString

Returns:

  • (String)


49
50
51
# File 'lib/bing-search/models.rb', line 49

def title
  @title
end

#urlString

Full URL of the result, including the scheme.

Returns:

  • (String)


62
63
64
# File 'lib/bing-search/models.rb', line 62

def url
  @url
end