Class: SynapseClient::MFA

Inherits:
Object
  • Object
show all
Defined in:
lib/synapse_client/mfa.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ MFA

Returns a new instance of MFA.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/synapse_client/mfa.rb', line 9

def initialize(options={})
  options = Map.new(options)

  @bank_access_token = options[:access_token]
  @type              = options[:type]

  if @type == "questions"
    @questions = []
    questions  = options[:mfa]
    questions.each do |q|
      @questions.push q["question"]
    end
  end
end

Instance Attribute Details

#bank_access_tokenObject (readonly)

Returns the value of attribute bank_access_token.



7
8
9
# File 'lib/synapse_client/mfa.rb', line 7

def bank_access_token
  @bank_access_token
end

#questionsObject (readonly)

Returns the value of attribute questions.



6
7
8
# File 'lib/synapse_client/mfa.rb', line 6

def questions
  @questions
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/synapse_client/mfa.rb', line 5

def type
  @type
end