Class: GoogleCustomSearch::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/google_custom_search.rb

Overview

Quick Struct-based class to hold data for a single search result.

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



16
17
18
# File 'lib/google_custom_search.rb', line 16

def description
  @description
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



16
17
18
# File 'lib/google_custom_search.rb', line 16

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



16
17
18
# File 'lib/google_custom_search.rb', line 16

def url
  @url
end