summaryrefslogtreecommitdiff
path: root/lib/github/repositories.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/github/repositories.rb')
-rw-r--r--lib/github/repositories.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/github/repositories.rb b/lib/github/repositories.rb
new file mode 100644
index 00000000000..c1c9448f305
--- /dev/null
+++ b/lib/github/repositories.rb
@@ -0,0 +1,19 @@
+module Github
+ class Repositories
+ attr_reader :options
+
+ def initialize(options)
+ @options = options
+ end
+
+ def fetch
+ Collection.new(options).fetch(repos_url)
+ end
+
+ private
+
+ def repos_url
+ '/user/repos'
+ end
+ end
+end