Class: SoftwareDescriptionFetchers::Strategies::Github

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

Overview

Strategy to fetch description from Github

Author:

  • guillaumeh

Instance Method Summary collapse

Constructor Details

#initialize(html_doc) ⇒ Github

Returns a new instance of Github.


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

def initialize(html_doc)
  @doc = html_doc
end

Instance Method Details

#fetchObject


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

def fetch
  fetch_description
end