Class: GitHub
Instance Method Summary collapse
-
#initialize(u, p) ⇒ GitHub
constructor
A new instance of GitHub.
- #repos(repo) ⇒ Object
Constructor Details
#initialize(u, p) ⇒ GitHub
Returns a new instance of GitHub.
8 9 10 |
# File 'lib/mygit.rb', line 8 def initialize(u, p) @auth = {:username => u, :password => p} end |
Instance Method Details
#repos(repo) ⇒ Object
12 13 14 |
# File 'lib/mygit.rb', line 12 def repos repo self.class.get("/orgs/#{repo}/repos?per_page=100", {:basic_auth => @auth}) end |