Class: Ghee::API::Repos::Issues::Assignees::Proxy
- Inherits:
-
ResourceProxy
- Object
- ResourceProxy
- Ghee::API::Repos::Issues::Assignees::Proxy
- Defined in:
- lib/ghee/api/issues.rb
Instance Attribute Summary
Attributes inherited from ResourceProxy
#connection, #current_page, #id, #pagination, #params, #path_prefix, #total
Instance Method Summary collapse
Methods inherited from ResourceProxy
accept_header, #all, #all_parallel, #build_prefix, #initialize, #method_missing, #paginate, #raw, #subject
Methods included from CUD
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(assignees, &block) ⇒ Object
143 144 145 146 147 148 149 150 151 152 |
# File 'lib/ghee/api/issues.rb', line 143 def add(assignees, &block) body = { assignees: assignees } connection.post(path_prefix) do |req| req.headers['Accept'] = "application/vnd.github.cerberus-preview.full+json" req.body = body block.call(req) if block end.body end |
#remove(assignees, &block) ⇒ Object
154 155 156 157 158 159 160 161 162 163 |
# File 'lib/ghee/api/issues.rb', line 154 def remove(assignees, &block) body = { assignees: assignees } connection.delete(path_prefix) do |req| req.headers['Accept'] = "application/vnd.github.cerberus-preview.full+json" req.body = body block.call(req) if block end.body end |