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.
156 157 158 |
# File 'lib/httpimagestore/configuration/handler.rb', line 156 def source_path @source_path end |
#source_url ⇒ Object
Returns the value of attribute source_url.
157 158 159 |
# File 'lib/httpimagestore/configuration/handler.rb', line 157 def source_url @source_url end |
#store_path ⇒ Object
Returns the value of attribute store_path.
158 159 160 |
# File 'lib/httpimagestore/configuration/handler.rb', line 158 def store_path @store_path end |
#store_url ⇒ Object
Returns the value of attribute store_url.
159 160 161 |
# File 'lib/httpimagestore/configuration/handler.rb', line 159 def store_url @store_url end |
Instance Method Details
#mime_extension ⇒ Object
161 162 163 164 165 |
# File 'lib/httpimagestore/configuration/handler.rb', line 161 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 |