Class: Appwrite::Models::MfaRecoveryCodes
- Inherits:
-
Object
- Object
- Appwrite::Models::MfaRecoveryCodes
- Defined in:
- lib/appwrite/models/mfa_recovery_codes.rb
Instance Attribute Summary collapse
-
#recovery_codes ⇒ Object
readonly
Returns the value of attribute recovery_codes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(recovery_codes:) ⇒ MfaRecoveryCodes
constructor
A new instance of MfaRecoveryCodes.
- #to_map ⇒ Object
Constructor Details
#initialize(recovery_codes:) ⇒ MfaRecoveryCodes
Returns a new instance of MfaRecoveryCodes.
8 9 10 11 12 |
# File 'lib/appwrite/models/mfa_recovery_codes.rb', line 8 def initialize( recovery_codes: ) @recovery_codes = recovery_codes end |
Instance Attribute Details
#recovery_codes ⇒ Object (readonly)
Returns the value of attribute recovery_codes.
6 7 8 |
# File 'lib/appwrite/models/mfa_recovery_codes.rb', line 6 def recovery_codes @recovery_codes end |
Class Method Details
.from(map:) ⇒ Object
14 15 16 17 18 |
# File 'lib/appwrite/models/mfa_recovery_codes.rb', line 14 def self.from(map:) MfaRecoveryCodes.new( recovery_codes: map["recoveryCodes"] ) end |
Instance Method Details
#to_map ⇒ Object
20 21 22 23 24 |
# File 'lib/appwrite/models/mfa_recovery_codes.rb', line 20 def to_map { "recoveryCodes": @recovery_codes } end |