Parent

Class/Module Index [+]

Quicksearch

Fog::AWS::STS::Mock

Public Class Methods

data() click to toggle source
# File lib/fog/aws/sts.rb, line 18
def self.data
  @data ||= Hash.new do |hash, key|
    hash[key] = {
      :owner_id => Fog::AWS::Mock.owner_id,
      :server_certificates => {}
    }
  end
end
new(options={}) click to toggle source
# File lib/fog/aws/sts.rb, line 35
def initialize(options={})
  @aws_access_key_id = options[:aws_access_key_id]
end
reset() click to toggle source
# File lib/fog/aws/sts.rb, line 27
def self.reset
  @data = nil
end
server_certificate_id() click to toggle source
# File lib/fog/aws/sts.rb, line 31
def self.server_certificate_id
  Fog::Mock.random_hex(16)
end

Public Instance Methods

data() click to toggle source
# File lib/fog/aws/sts.rb, line 39
def data
  self.class.data[@aws_access_key_id]
end
reset_data() click to toggle source
# File lib/fog/aws/sts.rb, line 43
def reset_data
  self.class.data.delete(@aws_access_key_id)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.