Class: Ghub::Endpoints::Repositories::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/ghub/endpoints/repositories/root.rb

Overview

Provides access to the users API endpoint.

Instance Method Summary collapse

Instance Method Details

#createObject



21
# File 'lib/ghub/endpoints/repositories/root.rb', line 21

def create(...) = create_action.call(...)

#destroy(owner, id) ⇒ Object



25
# File 'lib/ghub/endpoints/repositories/root.rb', line 25

def destroy(owner, id) = api.delete "repos/#{owner}/#{id}"

#indexObject



17
# File 'lib/ghub/endpoints/repositories/root.rb', line 17

def index(...) = index_action.call(...)

#patchObject



23
# File 'lib/ghub/endpoints/repositories/root.rb', line 23

def patch(...) = patch_action.call(...)

#showObject



19
# File 'lib/ghub/endpoints/repositories/root.rb', line 19

def show(...) = show_action.call(...)