Class: Fasterer::Github::GhTraverser
- Inherits:
-
Object
- Object
- Fasterer::Github::GhTraverser
- Defined in:
- lib/fasterer/github/gh_traverser.rb
Instance Method Summary collapse
- #api_errors ⇒ Object
- #collected_data ⇒ Object
-
#initialize(owner, repo, path) ⇒ GhTraverser
constructor
A new instance of GhTraverser.
- #traverse ⇒ Object
Constructor Details
#initialize(owner, repo, path) ⇒ GhTraverser
Returns a new instance of GhTraverser.
6 7 8 9 10 |
# File 'lib/fasterer/github/gh_traverser.rb', line 6 def initialize(owner, repo, path) @owner = owner @repo = repo @path = path.to_s end |
Instance Method Details
#api_errors ⇒ Object
20 21 22 |
# File 'lib/fasterer/github/gh_traverser.rb', line 20 def api_errors @api_errors ||= [] end |
#collected_data ⇒ Object
16 17 18 |
# File 'lib/fasterer/github/gh_traverser.rb', line 16 def collected_data @collected_data ||= [] end |
#traverse ⇒ Object
12 13 14 |
# File 'lib/fasterer/github/gh_traverser.rb', line 12 def traverse catch(:rate_limit) { collect_data(path) } end |