Class: GitHubWebHooksReceiver::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/github-web-hooks-receiver/base.rb

Direct Known Subclasses

App

Instance Method Summary collapse

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(options={})
  @options = symbolize_options(options)
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