Class: Buezli::Api::Client::Download
- Inherits:
-
Object
- Object
- Buezli::Api::Client::Download
- Defined in:
- lib/buezli/api/client/download.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.
Instance Method Summary collapse
-
#initialize(body:, filename:, content_type:, headers:) ⇒ Download
constructor
A new instance of Download.
Constructor Details
#initialize(body:, filename:, content_type:, headers:) ⇒ Download
Returns a new instance of Download.
7 8 9 10 11 12 |
# File 'lib/buezli/api/client/download.rb', line 7 def initialize(body:, filename:, content_type:, headers:) @body = body @filename = filename @content_type = content_type @headers = headers end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/buezli/api/client/download.rb', line 5 def body @body end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
5 6 7 |
# File 'lib/buezli/api/client/download.rb', line 5 def content_type @content_type end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
5 6 7 |
# File 'lib/buezli/api/client/download.rb', line 5 def filename @filename end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/buezli/api/client/download.rb', line 5 def headers @headers end |