Class: Appwrite::Models::MfaType

Inherits:
Object
  • Object
show all
Defined in:
lib/appwrite/models/mfa_type.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(secret:, uri:) ⇒ MfaType

Returns a new instance of MfaType.



9
10
11
12
13
14
15
# File 'lib/appwrite/models/mfa_type.rb', line 9

def initialize(
    secret:,
    uri:
)
    @secret = secret
    @uri = uri
end

Instance Attribute Details

#secretObject (readonly)

Returns the value of attribute secret.



6
7
8
# File 'lib/appwrite/models/mfa_type.rb', line 6

def secret
  @secret
end

#uriObject (readonly)

Returns the value of attribute uri.



7
8
9
# File 'lib/appwrite/models/mfa_type.rb', line 7

def uri
  @uri
end

Class Method Details

.from(map:) ⇒ Object



17
18
19
20
21
22
# File 'lib/appwrite/models/mfa_type.rb', line 17

def self.from(map:)
    MfaType.new(
        secret: map["secret"],
        uri: map["uri"]
    )
end

Instance Method Details

#to_mapObject



24
25
26
27
28
29
# File 'lib/appwrite/models/mfa_type.rb', line 24

def to_map
    {
        "secret": @secret,
        "uri": @uri
    }
end