Class: OneLogin::Api::Models::MFAToken

Inherits:
Object
  • Object
show all
Defined in:
lib/onelogin/api/models/mfa_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ MFAToken

Returns a new instance of MFAToken.


9
10
11
12
13
# File 'lib/onelogin/api/models/mfa_token.rb', line 9

def initialize(data)
  @value = data['mfa_token']
  @expires_at = data['expires_at']
  @reusable = data['reusable']
end

Instance Attribute Details

#expires_atObject

Returns the value of attribute expires_at.


7
8
9
# File 'lib/onelogin/api/models/mfa_token.rb', line 7

def expires_at
  @expires_at
end

#reusableObject

Returns the value of attribute reusable.


7
8
9
# File 'lib/onelogin/api/models/mfa_token.rb', line 7

def reusable
  @reusable
end

#valueObject

Returns the value of attribute value.


7
8
9
# File 'lib/onelogin/api/models/mfa_token.rb', line 7

def value
  @value
end