Class: NucleusCore::PdfResponse
- Inherits:
-
ResponseAdapter
- Object
- SimpleObject
- ResponseAdapter
- NucleusCore::PdfResponse
- Defined in:
- lib/nucleus_core/response_adapters/pdf_response.rb
Instance Attribute Summary
Attributes inherited from SimpleObject
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ PdfResponse
constructor
A new instance of PdfResponse.
Methods inherited from SimpleObject
Constructor Details
#initialize(attrs = {}) ⇒ PdfResponse
Returns a new instance of PdfResponse.
4 5 6 7 8 9 10 11 12 |
# File 'lib/nucleus_core/response_adapters/pdf_response.rb', line 4 def initialize(attrs={}) attrs = attrs.merge( disposition: "inline", filename: attrs.fetch(:filename) { "response.pdf" }, type: "application/pdf" ) super(attrs) end |