2017-04-11 21:33:54 -04:00
|
|
|
module Github
|
|
|
|
class Repositories
|
|
|
|
def initialize(username)
|
|
|
|
@username = username
|
|
|
|
end
|
|
|
|
|
|
|
|
def fetch
|
2017-04-12 21:43:38 -04:00
|
|
|
Collection.new.fetch(repos_url)
|
2017-04-11 21:33:54 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def repos_url
|
|
|
|
'/user/repos'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|