Class: Tabulatr::Responses::FileResponse

Inherits:
DirectResponse show all
Defined in:
lib/tabulatr/responses/file_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, options = {}) ⇒ FileResponse

Returns a new instance of FileResponse.



4
5
6
7
# File 'lib/tabulatr/responses/file_response.rb', line 4

def initialize(file, options={})
  @file = file
  @options = options
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



2
3
4
# File 'lib/tabulatr/responses/file_response.rb', line 2

def file
  @file
end

#optionsObject

Returns the value of attribute options.



2
3
4
# File 'lib/tabulatr/responses/file_response.rb', line 2

def options
  @options
end