module Hooker::Repos

Public Instance Methods

list(options) click to toggle source
# File lib/hooker/repos.rb, line 4
def list(options)
  opts = {}
  if options[:type]
    opts[:type] = options[:type]
  end
  if options[:org]
    Hooker.client.organization_repositories(options[:org], opts)
  elsif options[:user]
    Hooker.client.repositories(options[:user], opts)
  end
end