Class: Fog::AWS::Federation::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/aws/federation.rb,
lib/fog/aws/requests/federation/get_signin_token.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



21
22
# File 'lib/fog/aws/federation.rb', line 21

def initialize(options={})
end

Class Method Details

.dataObject



13
14
15
# File 'lib/fog/aws/federation.rb', line 13

def self.data
  @data ||= {}
end

.resetObject



17
18
19
# File 'lib/fog/aws/federation.rb', line 17

def self.reset
  @data = nil
end

Instance Method Details

#dataObject



24
25
26
# File 'lib/fog/aws/federation.rb', line 24

def data
  self.class.data
end

#get_signin_token(session) ⇒ Object



12
13
14
15
16
# File 'lib/fog/aws/requests/federation/get_signin_token.rb', line 12

def (session)
  {
    'SigninToken' => Fog::Mock.random_base64(752)
  }
end

#reset_dataObject



28
29
30
# File 'lib/fog/aws/federation.rb', line 28

def reset_data
  self.class.reset
end