Class: Sinicum::Imaging::RenderResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sinicum/imaging/imaging.rb

Overview

Internal: Simple wrapper around imaging results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, mime_type, filename, fingerprint = nil) ⇒ RenderResult

Returns a new instance of RenderResult.



163
164
165
166
167
168
# File 'lib/sinicum/imaging/imaging.rb', line 163

def initialize(path, mime_type, filename, fingerprint = nil)
  @path = path
  @mime_type = mime_type
  @filename = filename
  @fingerprint = fingerprint
end

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



161
162
163
# File 'lib/sinicum/imaging/imaging.rb', line 161

def filename
  @filename
end

#fingerprintObject

Returns the value of attribute fingerprint.



161
162
163
# File 'lib/sinicum/imaging/imaging.rb', line 161

def fingerprint
  @fingerprint
end

#mime_typeObject

Returns the value of attribute mime_type.



161
162
163
# File 'lib/sinicum/imaging/imaging.rb', line 161

def mime_type
  @mime_type
end

#pathObject

Returns the value of attribute path.



161
162
163
# File 'lib/sinicum/imaging/imaging.rb', line 161

def path
  @path
end