Class: ImageServer::Path

Inherits:
Object
  • Object
show all
Defined in:
lib/image_server/path.rb

Class Method Summary collapse

Class Method Details

.directory_path(namespace, image_hash) ⇒ Object


3
4
5
# File 'lib/image_server/path.rb', line 3

def self.directory_path(namespace, image_hash)
  "#{namespace}/#{image_hash[0..2]}/#{image_hash[3..5]}/#{image_hash[6..8]}/#{image_hash[9..-1]}"
end