Module: Configuration::ImageMetaData
- Included in:
- Image
- Defined in:
- lib/httpimagestore/configuration/handler.rb
Instance Attribute Summary collapse
-
#source_path ⇒ Object
Returns the value of attribute source_path.
-
#source_url ⇒ Object
Returns the value of attribute source_url.
-
#store_path ⇒ Object
Returns the value of attribute store_path.
-
#store_url ⇒ Object
Returns the value of attribute store_url.
Instance Method Summary collapse
Instance Attribute Details
#source_path ⇒ Object
Returns the value of attribute source_path.
160 161 162 |
# File 'lib/httpimagestore/configuration/handler.rb', line 160 def source_path @source_path end |
#source_url ⇒ Object
Returns the value of attribute source_url.
161 162 163 |
# File 'lib/httpimagestore/configuration/handler.rb', line 161 def source_url @source_url end |
#store_path ⇒ Object
Returns the value of attribute store_path.
162 163 164 |
# File 'lib/httpimagestore/configuration/handler.rb', line 162 def store_path @store_path end |
#store_url ⇒ Object
Returns the value of attribute store_url.
163 164 165 |
# File 'lib/httpimagestore/configuration/handler.rb', line 163 def store_url @store_url end |
Instance Method Details
#mime_extension ⇒ Object
165 166 167 168 169 |
# File 'lib/httpimagestore/configuration/handler.rb', line 165 def mime_extension return nil unless mime_type mime = MIME::Types[mime_type].first mime.extensions.select{|e| e.length == 3}.first or mime.extensions.first end |