Class: Karafka::Web::Ui::Controllers::Responses::File
- Inherits:
-
Object
- Object
- Karafka::Web::Ui::Controllers::Responses::File
- Defined in:
- lib/karafka/web/ui/controllers/responses/file.rb
Overview
Response that tells Roda to ship the content under a file name
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
Instance Method Summary collapse
-
#initialize(content, file_name) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(content, file_name) ⇒ File
Returns a new instance of File.
14 15 16 17 |
# File 'lib/karafka/web/ui/controllers/responses/file.rb', line 14 def initialize(content, file_name) @content = content @file_name = file_name end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
10 11 12 |
# File 'lib/karafka/web/ui/controllers/responses/file.rb', line 10 def content @content end |
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
10 11 12 |
# File 'lib/karafka/web/ui/controllers/responses/file.rb', line 10 def file_name @file_name end |