BigW Consortium Gitlab

repositories.rb 262 Bytes
Newer Older
1 2
module Github
  class Repositories
3 4 5 6
    attr_reader :options

    def initialize(options)
      @options = options
7 8 9
    end

    def fetch
10
      Collection.new(options).fetch(repos_url)
11 12 13 14 15 16 17 18 19
    end

    private

    def repos_url
      '/user/repos'
    end
  end
end