Module: Scales::Storage

Defined in:
lib/scales-core/storage.rb,
lib/scales-core/storage/sync.rb,
lib/scales-core/storage/async.rb

Defined Under Namespace

Modules: Async, Sync

Constant Summary collapse

REQUEST_QUEUE =
"scales_request_queue"
RESPONSE_CHANNEL =
"scales_response_channel"
RESOURCE_PREFIX =
"scales_resource_"
PARTIAL_PREFIX =
"scales_partial_"

Class Method Summary collapse

Class Method Details

.prefix(path) ⇒ Object



13
14
15
# File 'lib/scales-core/storage.rb', line 13

def prefix(path)
  (path =~ /^\//) ? RESOURCE_PREFIX + path : PARTIAL_PREFIX + path
end