Class: BacklogKit::Response::FileParser

Inherits:
Middleware
  • Object
show all
Defined in:
lib/backlog_kit/response/file_parser.rb

Instance Attribute Summary

Attributes inherited from Middleware

#body, #headers, #status

Instance Method Summary collapse

Instance Method Details

#on_complete(env) ⇒ Object



7
8
9
10
# File 'lib/backlog_kit/response/file_parser.rb', line 7

def on_complete(env)
  super
  env.body = BacklogKit::ResourceFile.new(decoded_filename, body) if file?
end