Class: Googling::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Result

Returns a new instance of Result.



5
6
7
8
9
# File 'lib/googling/result.rb', line 5

def initialize(attributes = {})
  @title = attributes[:title]
  @link = attributes[:link]
  @description = attributes[:description]
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

Returns the value of attribute link.



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

def link
  @link
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end