Class: SoftwareDescriptionFetchers::Strategies::GoogleCode

Inherits:
Object
  • Object
show all
Defined in:
app/models/software_description_fetchers/strategies/google_code.rb

Overview

Google code strategy to fetch the software description

Author:

  • guillaumeh

Instance Method Summary collapse

Constructor Details

#initialize(html_doc) ⇒ GoogleCode

Returns a new instance of GoogleCode.


9
10
11
# File 'app/models/software_description_fetchers/strategies/google_code.rb', line 9

def initialize(html_doc)
  @nokogiri_html = html_doc
end

Instance Method Details

#fetchObject


13
14
15
# File 'app/models/software_description_fetchers/strategies/google_code.rb', line 13

def fetch
  fetch_description
end