Class: AwsMfa::ProfileConfig
- Inherits:
-
Object
- Object
- AwsMfa::ProfileConfig
- Defined in:
- lib/aws_mfa/profile_config.rb
Instance Attribute Summary collapse
-
#mfa_serial ⇒ Object
readonly
Returns the value of attribute mfa_serial.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#role_arn ⇒ Object
readonly
Returns the value of attribute role_arn.
-
#source_profile ⇒ Object
readonly
Returns the value of attribute source_profile.
Instance Method Summary collapse
-
#initialize(profile_config, profile) ⇒ ProfileConfig
constructor
A new instance of ProfileConfig.
Constructor Details
#initialize(profile_config, profile) ⇒ ProfileConfig
Returns a new instance of ProfileConfig.
5 6 7 8 9 10 |
# File 'lib/aws_mfa/profile_config.rb', line 5 def initialize(profile_config, profile) @mfa_serial = profile_config["mfa_serial"] @profile = profile @role_arn = profile_config["role_arn"] @source_profile = profile_config["source_profile"] end |
Instance Attribute Details
#mfa_serial ⇒ Object (readonly)
Returns the value of attribute mfa_serial.
3 4 5 |
# File 'lib/aws_mfa/profile_config.rb', line 3 def mfa_serial @mfa_serial end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
3 4 5 |
# File 'lib/aws_mfa/profile_config.rb', line 3 def profile @profile end |
#role_arn ⇒ Object (readonly)
Returns the value of attribute role_arn.
3 4 5 |
# File 'lib/aws_mfa/profile_config.rb', line 3 def role_arn @role_arn end |
#source_profile ⇒ Object (readonly)
Returns the value of attribute source_profile.
3 4 5 |
# File 'lib/aws_mfa/profile_config.rb', line 3 def source_profile @source_profile end |