Method: Ghub::Endpoints::Repositories::Path#create
- Defined in:
- lib/ghub/endpoints/repositories/path.rb
#create(kind, owner: nil) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/ghub/endpoints/repositories/path.rb', line 27 def create kind, owner: nil case kind.to_s when "users" then Success "user/repos" when "orgs" owner ? Success("orgs/#{owner}/repos") : Failure("Organization name is missing.") else error kind end end |