Class: GitHubWebHooksReceiver::Base
- Inherits:
-
Object
- Object
- GitHubWebHooksReceiver::Base
- Defined in:
- lib/github-web-hooks-receiver/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
19 20 21 |
# File 'lib/github-web-hooks-receiver/base.rb', line 19 def initialize(={}) = () end |
Instance Method Details
#call(env) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/github-web-hooks-receiver/base.rb', line 23 def call(env) request = Rack::Request.new(env) response = Rack::Response.new process(request, response) response.to_a end |