Class: BingSearch::NewsResult

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

#dateDate

Date on which the article was indexed

Returns:

  • (Date)


144
145
146
# File 'lib/bing-search/models.rb', line 144

def date
  @date
end

#descriptionString

Sample of the article

Returns:

  • (String)


140
141
142
# File 'lib/bing-search/models.rb', line 140

def description
  @description
end

#sourceString

Organization responsible for the article

Returns:

  • (String)


136
137
138
# File 'lib/bing-search/models.rb', line 136

def source
  @source
end

#titleString Also known as: headline

Returns:

  • (String)


127
128
129
# File 'lib/bing-search/models.rb', line 127

def title
  @title
end

#urlString

URL of the article

Returns:

  • (String)


132
133
134
# File 'lib/bing-search/models.rb', line 132

def url
  @url
end