Class: GoogleAlerts::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blurbObject

Returns the value of attribute blurb

Returns:

  • (Object)

    the current value of blurb



3
4
5
# File 'lib/google_alerts/result.rb', line 3

def blurb
  @blurb
end

Returns the value of attribute link

Returns:

  • (Object)

    the current value of link



3
4
5
# File 'lib/google_alerts/result.rb', line 3

def link
  @link
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



3
4
5
# File 'lib/google_alerts/result.rb', line 3

def source
  @source
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



3
4
5
# File 'lib/google_alerts/result.rb', line 3

def title
  @title
end

Instance Method Details

#to_sObject



4
5
6
# File 'lib/google_alerts/result.rb', line 4

def to_s
  "#{title} #{link}"
end