Class: Endpointer::AppCreator
- Inherits:
-
Object
- Object
- Endpointer::AppCreator
- Defined in:
- lib/endpointer/app_creator.rb
Instance Method Summary collapse
Instance Method Details
#create(config) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/endpointer/app_creator.rb', line 8 def create(config) resources(config).each do |resource| app.send(resource.method, path(resource.url)) do executor_response = Endpointer::ResourceExecutor.new.perform(request, resource, config) headers executor_response.headers executor_response.body end end app end |