Class: Aws::Session::Credentials::MfaDevice::GenericMfaDevice
- Inherits:
-
Object
- Object
- Aws::Session::Credentials::MfaDevice::GenericMfaDevice
- Defined in:
- lib/aws/session/credentials/mfa_device/generic_mfa_device.rb
Overview
Represents generic MFA device that generates codes. Class must be initialized with the code.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#device_arn ⇒ Object
readonly
Returns the value of attribute device_arn.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ GenericMfaDevice
constructor
A new instance of GenericMfaDevice.
Constructor Details
#initialize(options = {}) ⇒ GenericMfaDevice
Returns a new instance of GenericMfaDevice.
11 12 13 14 |
# File 'lib/aws/session/credentials/mfa_device/generic_mfa_device.rb', line 11 def initialize( = {}) @code = [:code] @device_arn = [:device_arn] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/aws/session/credentials/mfa_device/generic_mfa_device.rb', line 8 def code @code end |
#device_arn ⇒ Object (readonly)
Returns the value of attribute device_arn.
9 10 11 |
# File 'lib/aws/session/credentials/mfa_device/generic_mfa_device.rb', line 9 def device_arn @device_arn end |