Class: Ghee::API::Repos::Collaborators::Proxy

Inherits:
ResourceProxy show all
Defined in:
lib/ghee/api/collaborators.rb

Instance Attribute Summary

Attributes inherited from ResourceProxy

#connection, #current_page, #pagination, #params, #path_prefix, #total

Instance Method Summary collapse

Methods inherited from ResourceProxy

#all, #initialize, #method_missing, #paginate, #subject

Constructor Details

This class inherits a constructor from Ghee::ResourceProxy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ghee::ResourceProxy

Instance Method Details

#add(member) ⇒ Object



15
16
17
# File 'lib/ghee/api/collaborators.rb', line 15

def add(member)
  connection.put("#{path_prefix}/#{member}").status == 204
end

#remove(member) ⇒ Object



19
20
21
# File 'lib/ghee/api/collaborators.rb', line 19

def remove(member)
  connection.delete("#{path_prefix}/#{member}").status == 204
end