Class: Backdrop::Builders::Put
- Inherits:
-
Backdrop::Builder
- Object
- Backdrop::Builder
- Backdrop::Builders::Put
- Defined in:
- lib/backdrop/builders/put.rb
Instance Method Summary collapse
Methods inherited from Backdrop::Builder
Instance Method Details
#build(output, project, data) ⇒ Object
10 11 12 13 |
# File 'lib/backdrop/builders/put.rb', line 10 def build(output, project, data) response = data['requests'].first['response_status'] build_response(output, project, data, response) end |
#route(app, file) ⇒ Object
4 5 6 7 8 |
# File 'lib/backdrop/builders/put.rb', line 4 def route(app, file) app.content_type :json code = File.read File.(file) app.status code.to_i end |