2017-04-12 01:33:54 +00:00
|
|
|
module Github
|
|
|
|
class Repositories
|
2017-04-20 01:54:09 +00:00
|
|
|
attr_reader :options
|
|
|
|
|
|
|
|
def initialize(options)
|
|
|
|
@options = options
|
2017-04-12 01:33:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def fetch
|
2017-04-20 01:54:09 +00:00
|
|
|
Collection.new(options).fetch(repos_url)
|
2017-04-12 01:33:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def repos_url
|
|
|
|
'/user/repos'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|