class Fog::Storage::HP::Mock

Public Class Methods

acls(type) click to toggle source
# File lib/fog/hp/storage.rb, line 89
def self.acls(type)
  type
end
data() click to toggle source
# File lib/fog/hp/storage.rb, line 93
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 109
def initialize(options={})
  require 'mime/types'
  @hp_secret_key = options[:hp_secret_key]
  @hp_account_id = options[:hp_account_id]
end
reset() click to toggle source
# File lib/fog/hp/storage.rb, line 105
def self.reset
  @data = nil
end

Public Instance Methods

data() click to toggle source
# File lib/fog/hp/storage.rb, line 115
def data
  self.class.data[@hp_account_id]
end
reset_data() click to toggle source
# File lib/fog/hp/storage.rb, line 119
def reset_data
  self.class.data.delete(@hp_account_id)
end