Class: Sinicum::Imaging::RenderResult
- Inherits:
-
Object
- Object
- Sinicum::Imaging::RenderResult
- Defined in:
- lib/sinicum/imaging/imaging.rb
Overview
Internal: Simple wrapper around imaging results.
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#fingerprint ⇒ Object
Returns the value of attribute fingerprint.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, mime_type, filename, fingerprint = nil) ⇒ RenderResult
constructor
A new instance of RenderResult.
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
#filename ⇒ Object
Returns the value of attribute filename.
161 162 163 |
# File 'lib/sinicum/imaging/imaging.rb', line 161 def filename @filename end |
#fingerprint ⇒ Object
Returns the value of attribute fingerprint.
161 162 163 |
# File 'lib/sinicum/imaging/imaging.rb', line 161 def fingerprint @fingerprint end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
161 162 163 |
# File 'lib/sinicum/imaging/imaging.rb', line 161 def mime_type @mime_type end |
#path ⇒ Object
Returns the value of attribute path.
161 162 163 |
# File 'lib/sinicum/imaging/imaging.rb', line 161 def path @path end |