Module: Elasticrepo::Extractor

Defined in:
lib/elasticrepo/extractor.rb

Class Method Summary collapse

Class Method Details

.repos(owner) ⇒ Object

GET /users/:user/starred –> Octokit.starred owner extract fields subset from each repo –> Elasticrepo::RepoSubset then returns an array of lighter starred repositories by user –> .repos



8
9
10
11
# File 'lib/elasticrepo/extractor.rb', line 8

def self.repos owner 
  repos = Octokit.starred owner 
  @repos = repos.map!{|repo|Elasticrepo::RepoSubset.new(repo)}
end