class Fog::Storage::HP::Mock
Public Class Methods
acls(type)
click to toggle source
# File lib/fog/hp/storage.rb, line 256 def self.acls(type) type end
data()
click to toggle source
# File lib/fog/hp/storage.rb, line 260 def self.data @data ||= Hash.new do |hash, key| hash[key] = { :acls => { :container => {}, :object => {} }, :containers => {} } end end
new(options={})
click to toggle source
# File lib/fog/hp/storage.rb, line 276 def initialize(options={}) # deprecate hp_account_id if options[:hp_account_id] Fog::Logger.deprecation(":hp_account_id is deprecated, please use :hp_access_key instead.") @hp_access_key = options.delete(:hp_account_id) end @hp_access_key = options[:hp_access_key] unless @hp_access_key raise ArgumentError.new("Missing required arguments: hp_access_key. :hp_account_id is deprecated, please use :hp_access_key instead.") end @hp_secret_key = options[:hp_secret_key] @hp_tenant_id = options[:hp_tenant_id] @os_account_meta_temp_url_key = options[:os_account_meta_temp_url_key] end
reset()
click to toggle source
# File lib/fog/hp/storage.rb, line 272 def self.reset @data = nil end
Public Instance Methods
data()
click to toggle source
# File lib/fog/hp/storage.rb, line 291 def data self.class.data[@hp_access_key] end
reset_data()
click to toggle source
# File lib/fog/hp/storage.rb, line 295 def reset_data self.class.data.delete(@hp_access_key) end