summaryrefslogtreecommitdiff
path: root/lib/github/repositories.rb
blob: b6a03173673dfbcb4ee7b451cc2af9e571745ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Github
  class Repositories
    def initialize(username)
      @username = username
    end

    def fetch
      Collection.new.fetch(repos_url)
    end

    private

    def repos_url
      '/user/repos'
    end
  end
end