Class: AnswerLayer::DownloadResponse
- Inherits:
-
Object
- Object
- AnswerLayer::DownloadResponse
- Defined in:
- lib/answerlayer/responses/download_response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(body:, content_type: nil, filename: nil, status: nil, headers: {}) ⇒ DownloadResponse
constructor
A new instance of DownloadResponse.
Constructor Details
#initialize(body:, content_type: nil, filename: nil, status: nil, headers: {}) ⇒ DownloadResponse
Returns a new instance of DownloadResponse.
7 8 9 10 11 12 13 |
# File 'lib/answerlayer/responses/download_response.rb', line 7 def initialize(body:, content_type: nil, filename: nil, status: nil, headers: {}) @body = body @content_type = content_type @filename = filename @status = status @headers = headers end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/answerlayer/responses/download_response.rb', line 5 def body @body end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
5 6 7 |
# File 'lib/answerlayer/responses/download_response.rb', line 5 def content_type @content_type end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
5 6 7 |
# File 'lib/answerlayer/responses/download_response.rb', line 5 def filename @filename end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/answerlayer/responses/download_response.rb', line 5 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/answerlayer/responses/download_response.rb', line 5 def status @status end |