Class: GitGrabber::Api
- Inherits:
-
Object
- Object
- GitGrabber::Api
- Defined in:
- lib/git_grabber/api.rb
Instance Method Summary collapse
- #fetch_all ⇒ Object
-
#initialize(token) ⇒ Api
constructor
A new instance of Api.
Constructor Details
#initialize(token) ⇒ Api
Returns a new instance of Api.
5 6 7 |
# File 'lib/git_grabber/api.rb', line 5 def initialize(token) @api = Octokit::Client.new access_token: token end |
Instance Method Details
#fetch_all ⇒ Object
9 10 11 |
# File 'lib/git_grabber/api.rb', line 9 def fetch_all @api.repositories end |