Class: Fasterer::Github::Scanner

Inherits:
Object
  • Object
show all
Defined in:
lib/fasterer/github/scanner.rb

Instance Method Summary collapse

Constructor Details

#initialize(owner, repo, path) ⇒ Scanner

Returns a new instance of Scanner.



8
9
10
11
12
# File 'lib/fasterer/github/scanner.rb', line 8

def initialize(owner, repo, path)
  @owner = owner
  @repo = repo
  @path = path
end

Instance Method Details

#resultsObject



19
20
21
# File 'lib/fasterer/github/scanner.rb', line 19

def results
  output_composer.result
end

#runObject



14
15
16
17
# File 'lib/fasterer/github/scanner.rb', line 14

def run
  data = traverse_and_collect_data
  data.each { |d| analyze_code(d) }
end