Class: Ghee::API::Repos::Hooks::Proxy
- Inherits:
-
ResourceProxy
- Object
- ResourceProxy
- Ghee::API::Repos::Hooks::Proxy
- Includes:
- CUD
- Defined in:
- lib/ghee/api/hooks.rb
Instance Attribute Summary
Attributes inherited from ResourceProxy
#connection, #current_page, #id, #pagination, #params, #path_prefix, #total
Instance Method Summary collapse
-
#test ⇒ Object
Test hook - This will trigger the hook with the latest push to the current repository.
Methods included from CUD
Methods inherited from ResourceProxy
accept_header, #all, #all_parallel, #build_prefix, #initialize, #method_missing, #paginate, #raw, #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
#test ⇒ Object
Test hook - This will trigger the hook with the latest push to the current repository.
21 22 23 |
# File 'lib/ghee/api/hooks.rb', line 21 def test connection.post("#{path_prefix}/test").body end |