module Fog::Storage::Akamai::Helpers
Public Instance Methods
format_path(path)
click to toggle source
# File lib/fog/akamai/storage.rb, line 31 def format_path(path) ["/#{akamai_cp_code}", path].reject(&:empty?).join end
path_and_body_guard(path, body)
click to toggle source
# File lib/fog/akamai/storage.rb, line 35 def path_and_body_guard(path, body) path_guard(path) fail ArgumentError('body is required') if body.nil? end
path_guard(path)
click to toggle source
# File lib/fog/akamai/storage.rb, line 40 def path_guard(path) fail(ArgumentError, 'path needs to have a value') if path.nil? || path.empty? end