Class: Buezli::Api::Client::Download

Inherits:
Object
  • Object
show all
Defined in:
lib/buezli/api/client/download.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/buezli/api/client/download.rb', line 5

def body
  @body
end

#content_typeObject (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

#filenameObject (readonly)

Returns the value of attribute filename.



5
6
7
# File 'lib/buezli/api/client/download.rb', line 5

def filename
  @filename
end

#headersObject (readonly)

Returns the value of attribute headers.



5
6
7
# File 'lib/buezli/api/client/download.rb', line 5

def headers
  @headers
end