Class: Fog::AWS::Federation::Mock
- Inherits:
-
Object
- Object
- Fog::AWS::Federation::Mock
- Defined in:
- lib/fog/aws/federation.rb,
lib/fog/aws/requests/federation/get_signin_token.rb
Class Method Summary collapse
Instance Method Summary collapse
- #data ⇒ Object
- #get_signin_token(session) ⇒ Object
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #reset_data ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
21 22 |
# File 'lib/fog/aws/federation.rb', line 21 def initialize(={}) end |
Class Method Details
.data ⇒ Object
13 14 15 |
# File 'lib/fog/aws/federation.rb', line 13 def self.data @data ||= {} end |
.reset ⇒ Object
17 18 19 |
# File 'lib/fog/aws/federation.rb', line 17 def self.reset @data = nil end |
Instance Method Details
#data ⇒ Object
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 get_signin_token(session) { 'SigninToken' => Fog::Mock.random_base64(752) } end |
#reset_data ⇒ Object
28 29 30 |
# File 'lib/fog/aws/federation.rb', line 28 def reset_data self.class.reset end |