Module: Configuration::ImageMetaData

Included in:
Image
Defined in:
lib/httpimagestore/configuration/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#source_pathObject

Returns the value of attribute source_path.



159
160
161
# File 'lib/httpimagestore/configuration/handler.rb', line 159

def source_path
  @source_path
end

#source_urlObject

Returns the value of attribute source_url.



160
161
162
# File 'lib/httpimagestore/configuration/handler.rb', line 160

def source_url
  @source_url
end

#store_pathObject

Returns the value of attribute store_path.



161
162
163
# File 'lib/httpimagestore/configuration/handler.rb', line 161

def store_path
  @store_path
end

#store_urlObject

Returns the value of attribute store_url.



162
163
164
# File 'lib/httpimagestore/configuration/handler.rb', line 162

def store_url
  @store_url
end

Instance Method Details

#mime_extensionObject



164
165
166
167
168
# File 'lib/httpimagestore/configuration/handler.rb', line 164

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